Index: branches/5.3.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r15947 -r15981 --- branches/5.3.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15947) +++ branches/5.3.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15981) @@ -1,6 +1,6 @@ _tableName . ' SELECT * - FROM ' . $this->_getTempTableName(); + FROM ' . $this->_getTempTableName() . ' + WHERE 1'; $this->Conn->Query($this->_addConstrain($sql)); $this->_saveId('', $live_ids); @@ -806,7 +807,8 @@ { if ( !$ids ) { $sql = 'SELECT ' . $this->_idField . ' - FROM ' . $this->_getTempTableName(); + FROM ' . $this->_getTempTableName() . ' + WHERE 1'; $ids = $this->Conn->GetCol($this->_addConstrain($sql)); }