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 'eau~%' and pcoll.products_collection_id = cg.products_collection_id and cg.prod' 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, (SELECT p.products_id FROM products p, auxiliary_query aq WHERE (auxiliary_query like '% Vestes %') AND (auxiliary_query like '% Helly %') AND (auxiliary_query like '% Hansen %') AND (auxiliary_query like '% Femme %') AND p.products_id = aq.products_id) k, products cg where c.categories_id=cd.categories_id and cg.master_categories_id=c.categories_id and pcoll.products_collection LIKE '%~D\\'eau~%' and pcoll.products_collection_id = cg.products_collection_id and cg.products_gender_id = '2' and pg.products_gender_id = cg.products_gender_id and c.categories_id in (19,20,21,22,23,24,25,26,27,28,29,30,31,32) and cd.language_id='1' and c.categories_status='1' and k.products_id = cg.products_id order by c.sort_order,cd.categories_id]