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 '-20,20' at line 1 SQL=SELECT a.* FROM juypz_zoo_item AS a LEFT JOIN juypz_zoo_category_item AS b ON a.id = b.item_id WHERE a.application_id = 1 AND b.category_id = 2 AND access IN (1,1) AND a.state = 1 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2024-03-19 06:26:18') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-03-19 06:26:18') GROUP BY a.id ORDER BY a.priority DESC, a.created ASC LIMIT -20,20)