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 '(Sizes 1Y - 7Y)~%' and pcoll.products_collection_id = cg.products_collection_id ' at line 1
in:
[select distinct c.categories_id, cd.categories_name, cg.master_categories_id from categories c, categories_description cd, products_collection pcoll, products_gender pg, products cg where c.categories_id=cd.categories_id and cg.master_categories_id=c.categories_id and pcoll.products_collection LIKE '%~Garotão\\' (Sizes 1Y - 7Y)~%' and pcoll.products_collection_id = cg.products_collection_id and cg.products_gender_id = '1' and pg.products_gender_id = cg.products_gender_id and c.categories_id in (28,35,36,43,53,57,64,66,71,75,79,80,95,99,101,104) and cd.language_id='1' and c.categories_status='1' order by c.sort_order,cd.categories_id]