Index: t3lib/class.t3lib_sqlparser.php =================================================================== --- t3lib/class.t3lib_sqlparser.php (revision 6889) +++ t3lib/class.t3lib_sqlparser.php (working copy) @@ -761,7 +761,7 @@ } else { $stack[$pnt]['distinct'] = $this->nextPart($parseString,'^(distinct[[:space:]]+)'); // Otherwise, look for regular fieldname: - if ($fieldName = $this->nextPart($parseString,'^([[:alnum:]\*._]+)(,|[[:space:]]+)')) { + if (($fieldName = $this->nextPart($parseString, '^([[:alnum:]\*._]+)(,|[[:space:]]+)')) !== '') { $stack[$pnt]['type'] = 'field'; // Explode fieldname into field and table: