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='1003'
AND art_data_postare > 1711594251
ORDER BY art_data_postare DESC LIMIT -20, 20)