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_id ASC' at line 1

SQL Query
SELECT `image`.* FROM `image` WHERE id!=0 AND gallery_id= AND status='Active' ORDER BY sort_id ASC