Juegos de mesa
SELECT `e`.*, `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_featured`.`value` AS `featured`, IF(at_sort_priority.value_id > 0, at_sort_priority.value, at_sort_priority_default.value) AS `sort_priority`, IFNULL(review_summary.reviews_count, 0) AS `reviews_count`, IFNULL(review_summary.rating_summary, 0) AS `rating_summary`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`
INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '6'
LEFT JOIN `catalog_product_entity_int` AS `at_featured` ON (`at_featured`.`entity_id` = `e`.`entity_id`) AND (`at_featured`.`attribute_id` = '137') AND (`at_featured`.`store_id` = 0)
LEFT JOIN `catalog_product_entity_varchar` AS `at_sort_priority_default` ON (`at_sort_priority_default`.`entity_id` = `e`.`entity_id`) AND (`at_sort_priority_default`.`attribute_id` = '154') AND `at_sort_priority_default`.`store_id` = 0
LEFT JOIN `catalog_product_entity_varchar` AS `at_sort_priority` ON (`at_sort_priority`.`entity_id` = `e`.`entity_id`) AND (`at_sort_priority`.`attribute_id` = '154') AND (`at_sort_priority`.`store_id` = 6)
LEFT JOIN `mst_sorting_index` AS `mst_sorting_index_6` ON mst_sorting_index_6.product_id = e.entity_id AND mst_sorting_index_6.store_id = 6
LEFT JOIN `mst_sorting_index` AS `mst_sorting_index_0` ON mst_sorting_index_0.product_id = e.entity_id AND mst_sorting_index_0.store_id = 0
LEFT JOIN `catalog_category_product_index_store6` AS `sorting_position` ON sorting_position.product_id = e.entity_id AND sorting_position.store_id = 6 AND sorting_position.category_id = 125
LEFT JOIN `review_entity_summary` AS `review_summary` ON e.entity_id = review_summary.entity_pk_value AND review_summary.store_id = 6 AND review_summary.entity_type = (SELECT `review_entity`.`entity_id` FROM `review_entity` WHERE (entity_code = 'product'))
INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id
LEFT JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (e.entity_id IN (402, 414, 434, 439, 484, 500, 506, 535, 540, 549, 571, 639, 959, 1101, 1107, 1109, 1111, 1279, 1283, 1286, 1288, 1291, 1317, 1370, 2, 6, 23, 30, 45, 57, 68, 96, 97, 106, 115, 117)) ORDER BY sorting_position.position desc, FIELD(e.entity_id,402,414,434,439,484,500,506,535,540,549,571,639,959,1101,1107,1109,1111,1279,1283,1286,1288,1291,1317,1370,2,6,23,30,45,57,68,96,97,106,115,117) , CAST(sort_priority AS SIGNED) DESC
Página
- Página Anterior
- Página 3
- Página 4
- Actualmente estás leyendo página 5
- Página 6
- Página 7
- Página Siguiente