Возникла ошибка базы данных
Error Number: 1064
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 'add,40' at line 1
SELECT * FROM (classified) WHERE main_cat='sales' AND cat='img' ORDER BY date DESC LIMIT add,40