SELECT `product_id` FROM `store_products` WHERE (`category_id` IN (85,267,55,54,75,64,110,265,93,91,63,78,82,88,52,53,79,65,90,100,274,266,25,80,84,270,87,102,97,83,89,264,77,62,57,268,56) OR `category_id`='0') AND `store_id`=:store_id AND `visible`<>'N'