Index: branches/5.2.x/core/kernel/db/dblist.php =================================================================== diff -u -N -r16644 -r16663 --- branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16644) +++ branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16663) @@ -1,6 +1,6 @@ GetSelectSQL(true, false); $fields = str_replace('%1$s', $this->TableName, implode(', ', $fields)); + $sql = $this->GetSelectSQL(true, false, $fields); if ( preg_match("/DISTINCT(.*?\s)FROM(?!_)/is",$sql,$regs ) ) {