500

Ошибка: 500

DatabaseHelper::query failed. (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-5,5' at line 1 SQL=SELECT a.* FROM qmw4u_zoo_item AS a LEFT JOIN qmw4u_zoo_category_item AS b ON a.id = b.item_id WHERE a.application_id = 1 AND b.category_id = 9 AND access IN (1,1) AND a.state = 1 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-02-05 06:16:30') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-02-05 06:16:30') GROUP BY a.id ORDER BY a.priority DESC, a.created DESC LIMIT -5,5)