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 'ORDER BY id_new DESC LIMIT 1' at line 5

SELECT id_new FROM news WHERE id_new < 2160 AND id_page = ORDER BY id_new DESC LIMIT 1