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 date_created DESC' at line 5

SELECT id FROM image LEFT JOIN image_properties ON image.id = image_properties.image_id WHERE image.active > -1 AND () ORDER BY date_created DESC