Error in SQL query: 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 'ORDER BY release_date DESC' at line 1: SELECT * FROM clips INNER JOIN genres_clips g_c ON WHERE types_id=4 AND publish=1 AND filmundco=1 AND g_c.genres_id= ORDER BY release_date DESC