SELECT `product`.*, `product_image`.`image`, IF((product.sale_price>0), `product`.`sale_price`, product.price) AS sort_price, GROUP_CONCAT(product_options.option_id SEPARATOR ", ") as option_id FROM `product` LEFT JOIN `product_category` ON `product`.`content_id` = `product_category`.`content_id` LEFT JOIN `category_master` ON `product_category`.`category_content_id` = `category_master`.`content_id` LEFT JOIN `product_options` ON `product`.`content_id` = `product_options`.`content_id` LEFT JOIN `product_image` ON (`product`.`content_id` = `product_image`.`content_id` AND `main_image` = 1) WHERE `product`.`status` = 1 AND `product_category`.`category_content_id` = '98' AND `category_master`.`status` = 1 AND `product`.`language_slug` = 'en' GROUP BY `product`.`content_id` ORDER BY `product`.`product_name` ASC LIMIT 20
1
1
1
-
-
-
11
11
11
of
of
of
11
11
11
results
results
results