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 '&& section_id=1 && sub_cat_id =''' at line 1

select * from subcategory where cat_id= && section_id=1 && sub_cat_id =''

Filename: /var/www/html/greenhandle/models/common_model.php

Line Number: 37