Error!

MySQL Error: 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 contents.published=1 and contents.magazine_id = 6 and contents.publish_dat' at line 1
SQL Statement: SELECT * FROM contents WHERE contents.id = 486417' and contents.published=1 and contents.magazine_id = 6 and contents.publish_date <= '2024-05-13'