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 'F??s?
?
?' and pg.products_gender_id = cg.products_gender_id and c.categories_i' at line 1
in:
[select distinct c.categories_id, cd.categories_name, cg.master_categories_id from categories c, categories_description cd, products_size ps, products_gender pg, products cg where c.categories_id=cd.categories_id and cg.master_categories_id=c.categories_id and ps.products_size like '%~S~%' and ps.products_size not like '%S NO%' and cg.products_size_id = ps.products_size_id and cg.products_gender_id = '4g6\\\\'Fs
' and pg.products_gender_id = cg.products_gender_id and c.categories_id in (44,45,46,47,48,49,50,51,52,53,54,55,56) and cd.language_id='1' and c.categories_status='1' order by c.sort_order,cd.categories_id]