You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-20, 20' at line 5 (SELECT art_id FROM articole WHERE art_active = 1 AND art_sectiune='9' AND art_data_postare > 1715811741 ORDER BY art_data_postare DESC LIMIT -20, 20)