ERROR: [2024-06-19 17:24:19] [1064] 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 '-10,10' at line 7 SELECT a_id,a_link, DATE_FORMAT(a_date,'%d.%m.%Y') a_date_2,a_title,a_text, a_tags, ag_name, ag_id, a_group, a_transition,a_text_small, a_mini_id, a_mini_group, mh_price, mh_link, cm_name_eng FROM wd_articles LEFT JOIN wd_articles_group ON ag_id = a_group LEFT JOIN wd_citadel_min ON cm_id = a_mini_id LEFT JOIN wd_citadel_min_hg ON mh_id = a_mini_id WHERE a_date <= '2024-06-19 17:24:19' AND a_status = 1 AND a_group in (1,2,3,4,5,6,7) AND a_id = 'NO DATA' ORDER BY a_date DESC, a_id DESC LIMIT -10,10