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 '%~1880 Classic~%' and pcoll.products_collection_id = cg.products_collection_id and pcoll.products_collection LIKE '%~Dainite~%' and pcoll.products_collection_id = cg.products_collection_id and pcoll.products_collection LIKE '%~Capital~%' and pcoll.products_collection_id = cg.products_collection_id and pcoll.products_collection LIKE '%~Boot~%' and pcoll.products_collection_id = cg.products_collection_id and pcoll.products_collection LIKE '%~F Fit~%' and pcoll.products_collection_id = cg.products_collection_id and pcoll.products_collection LIKE '%~Rubber~%' 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 (7,8,9,10,11,12) and cd.language_id='1' and c.categories_status='1' order by c.sort_order,cd.categories_id]