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 'WHERE content_images.id = '' LIMIT 1' at line 1
SQL Statement: SELECT images.* FROM images JOIN content_images on images.id = content_images.image_id and content_images.id = WHERE content_images.id = '' LIMIT 1