Index: class.ux_t3lib_db.php =================================================================== --- class.ux_t3lib_db.php (revision 45954) +++ class.ux_t3lib_db.php (working copy) @@ -1907,9 +1914,13 @@ */ protected function _quoteOrderBy(array $orderBy) { foreach ($orderBy as $k => $v) { - $orderBy[$k]['field'] = $this->quoteName($orderBy[$k]['field']); - if ($orderBy[$k]['table'] != '') { - $orderBy[$k]['table'] = $this->quoteName($orderBy[$k]['table']); + if($orderBy[$k]['table'] == '' && $v['field'] != '' && ctype_digit($v['field'])){ + ; + } else { + $orderBy[$k]['field'] = $this->quoteName($orderBy[$k]['field']); + if ($orderBy[$k]['table'] != '') { + $orderBy[$k]['table'] = $this->quoteName($orderBy[$k]['table']); + } } } return $orderBy;