You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND data_db <= '2022-08-19 17:11:07' ORDER BY data_db DESC, id DESC LIMIT 0,6' at line 1