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_id in' at line 1
in:
[select distinct c.categories_id, cd.categories_name, cg.master_categories_id from categories c, categories_description cd, products_color pccg, products_gender pg, products cg where c.categories_id=cd.categories_id and cg.master_categories_id=c.categories_id and pccg.products_color like '%Gold%' and cg.products_color_id = pccg.products_color_id and cg.products_gender_id = '2g6�\\'F��s�' and pg.products_gender_id = cg.products_gender_id and c.categories_id in (2,8,18,19,38,48,52,4,7,12,15,16,24,26,35,43,47,50,53,54,56,57,58,61,63,64,6,28,30,31,32,49,60,10,11,17,21,27,37,42,44,45,51,55,14,20,25,29,41,23,33,34,36,40,46,59,62) and cd.language_id='1' and c.categories_status='1' order by c.sort_order,cd.categories_id]