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 active_inactive = 1 order by cat_image_path DESC ,cat_title ASC' at line 1

SELECT * FROM shop_catagory_subCat WHERE `main_cat_id` = and active_inactive = 1 order by cat_image_path DESC ,cat_title ASC

Filename: /home/shopniag/public_html/models/catagory_model.php

Line Number: 220