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 'S FOOT WEAR' AND cat_name = 'FASHION'' at line 2

SELECT `ID`, `catID`, `cat_name`, `sub_cat`, `icon`, `img_id`, `status`, `keyword`, `user_id`, `rDate`, `rTime`, `user_idUPD`, `uDate`, `uTime` FROM `web_main_category` WHERE sub_cat = 'WOMEN'S FOOT WEAR' AND cat_name = 'FASHION'

Filename: controllers/Home.php

Line Number: 46