MySQL returned error




Error Description :
Error No : 1064
Description : 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 status='Active' ORDER BY sort_order ASC' at line 1

SQL Query
SELECT `hl_images`.* FROM `hl_images` WHERE id!=0 AND hl_id= and status='Active' ORDER BY sort_order ASC