A Database Error Occurred

Error Number: 1064

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 s.image !="" group by s.id' at line 3

select s.id from subcategory s where s.state=1 and s.catid= and s.image !="" group by s.id

Filename: models/Common_model.php

Line Number: 27