MySQL Fatal Error

/var/www/vhosts/ at line 96

Wax method: getRows
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 'ORDER BY id DESC LIMIT 0 , 1' at line 1

Query: SELECT * FROM `wax_noticias` WHERE id < ORDER BY id DESC LIMIT 0 , 1