Dinnerware

SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `cat_index`.`position` AS `cat_index_position`, `e`.`name`, `e`.`description`, `e`.`short_description`, `e`.`price`, `e`.`special_price`, `e`.`special_from_date`, `e`.`special_to_date`, `e`.`image`, `e`.`small_image`, `e`.`thumbnail`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`required_options`, `e`.`image_label`, `e`.`small_image_label`, `e`.`thumbnail_label`, `e`.`price_type`, `e`.`weight_type`, `e`.`price_view`, `e`.`url_key`, `e`.`links_purchased_separately`, `e`.`links_exist`, `e`.`giftcard_amounts`, `e`.`allow_open_amount`, `e`.`open_amount_min`, `e`.`open_amount_max`, `e`.`tax_class_id`, `e`.`swatch_image`, `e`.`badge`, `e`.`badge_value`, `e`.`height`, `e`.`length`, `e`.`width`, `e`.`capacity`, `e`.`upc`, `e`.`use_care`, `e`.`category_comment`, `e`.`size`, `e`.`product_comment`, `e`.`am_shipping_type`, `e`.`am_shipping_type_value`, `e`.`custom_stock_status`, `e`.`custom_stock_status_value`, `e`.`custom_stock_status_qty_based`, `e`.`custom_stock_status_qty_rule`, `e`.`custom_stock_status_qty_rule_value`, `e`.`pattern`, `e`.`pattern_value`, `e`.`configurable_options`, `e`.`configurable_options_value`, `e`.`new`, `e`.`new_value`, `e`.`service_size`, `e`.`service_size_value`, `e`.`discountable`, `e`.`brand`, `e`.`brand_value`, `e`.`material`, `e`.`bv_feed_exclude`, `e`.`in_stock_from_date`, `e`.`qty_stock_allocation`, `e`.`qty_pre_back_order_allocation`, `e`.`retail_exclusive`, `e`.`retail_exclusive_value`, `e`.`clearance`, `e`.`clearance_value`, `e`.`bv_category_id`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `at_bestsellers`.`qty_ordered` AS `bestsellers`, `product_entity`.`row_id`, `stock_status_index`.`stock_status` AS `is_salable` FROM `catalog_product_flat_9` AS `e` INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=9 AND cat_index.visibility IN(2, 4) AND cat_index.category_id='957' INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '9' AND price_index.customer_group_id = 0 LEFT JOIN `amasty_sorting_bestsellers` AS `at_bestsellers` ON (at_bestsellers.`product_id`=e.entity_id) AND (at_bestsellers.store_id = '9') INNER JOIN `catalog_product_entity` AS `product_entity` ON product_entity.entity_id = e.entity_id AND (product_entity.created_in <= '1568962802' AND product_entity.updated_in > '1568962802') LEFT JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 INNER JOIN `search_tmp_5d88d9455910f0_50925506` AS `search_result` ON e.entity_id = search_result.entity_id ORDER BY `at_bestsellers`.`qty_ordered` DESC, `e`.`entity_id` ASC, `e`.`entity_id` ASC LIMIT 24