SELECT p.*,(p.sold + p.best_seller) as total_sell, pd.* FROM dd_product_to_category p2c LEFT JOIN dd_product p ON (p2c.product_id = p.product_id) LEFT JOIN dd_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN dd_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND p2c.category_id = '6' AND (FIND_IN_SET(721,p.filter) OR FIND_IN_SET(51,p.filter) OR FIND_IN_SET(48,p.filter) OR FIND_IN_SET(53,p.filter) ) AND (FIND_IN_SET(115,p.filter) ) AND (FIND_IN_SET(7,p.filter) ) AND p.price BETWEEN 100 AND 5000000 GROUP BY p.product_id ORDER BY p.sort_order ASC, LCASE(pd.name) ASC LIMIT 0,24