选择DISTINCT 1 AS status
,e
。entity_id
,e
。type_id
,e
。attribute_set_id
,{ {1}}。e
,name
。e
,short_description
。e
,price
。e
,{{1 } {。{}},special_price
。e
,special_from_date
。e
,special_to_date
。e
,small_image
。e
,thumbnail
。e
,color
。e
,color_value
。e
,news_from_date
。{ {1}},e
。news_to_date
,e
。url_key
,e
。required_options
,e
。{{1 },image_label
。e
,small_image_label
。e
,thumbnail_label
。e
,msrp_enabled
。e
,msrp_display_actual_price_type
。e
,msrp
。e
,tax_class_id
。e
,price_type
。e
,{ {1}}。weight_type
,e
。price_view
,e
。shipment_type
,e
。links_purchased_separately
,{{1 } {。{}},e
。links_exist
,e
。open_amount_min
,e
。open_amount_max
,e
。entity_id
,e
。attribute_set_id
,e
。type_id
,e
。cost
,e
。{ {1}},created_at
。e
,gift_message_available
。e
,has_options
。e
,image_label
。{{1 },e
。is_recurring
,e
。links_exist
,e
。links_purchased_separately
,e
。links_title
,e
。msrp
,e
。msrp_display_actual_price_type
,e
。msrp_enabled
,e
。name
,{ {1}}。e
,news_from_date
。e
,news_to_date
。e
,open_amount_max
。e
,{{1 } {。{}},open_amount_min
。e
,price
。e
,price_type
。e
,price_view
。e
,recurring_profile
。e
,required_options
。e
,shipment_type
。e
,short_description
。{ {1}},e
。sku
,e
。sku_type
,e
。small_image
,e
。{{1 },small_image_label
。e
,special_from_date
。e
,special_price
。e
,special_to_date
。e
,tax_class_id
。{ {1}},e
。thumbnail
,e
。thumbnail_label
,e
。updated_at
,e
。{{1 },url_key
。e
,url_path
。e
,visibility
。e
,weight
。e
,weight_type
。e
,necklace_length
。e
,necklace_length_value
。e
,IF(price_index.tier_price IS NOT NULL,LEAST(price_index。 min_price,price_index.tier_price),price_index.min_price)AS occasion
,e
。occasion_value
,e
。shoe_type
,e
。{{ 1}},shoe_type_value
。e
,color
。e
AS color_value
,price_index
。price
AS {{1} },price_index
。,tax_class_id
。,price_index
。final_price
AS minimal_price
,price_index
。{{1 AS min_price
FROM price_index
AS max_price
INNER JOIN price_index
AS tier_price
ON price_index.entity_id = e.entity_id AND price_index.website_id =' 1' AND price_index.customer_group_id = 0
LEFT JOIN at_category_id
AS category_id
ON(at_category_id。cat_index
= e.entity_id)
INNER JOIN position
AS cat_index_position
ON cat_index.product_id = e.entity_id AND cat_index.store_id = 1 AND cat_index.visibility IN(2,4)AND cat_index.category_id =' 2'
INNER JOIN at_inventory_in_stock
AS is_in_stock
ON(at_inventory_in_stock。inventory_in_stock
= e.entity_id)AND((at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock = 1 AND at_inventory_in_stock.is_in_stock = 1)OR( at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock = 0)或(at_inventory_in_stock.use_config_manage_stock = 1 AND at_inventory_in_stock.is_in_stock = 1))
LEFT JOIN(SELECT mv
。*,COUNT(bs
)AS ra
FROM reviews_count
WHERE(event_type_id = 1)GROUP BY num_reviews_count
)AS {{1 ON mv.object_id = e.entity_id
LEFT JOIN(选择ra
。rating_summary
,SUM(num_rating_summary
)AS catalog_product_flat_1
FROM e
GROUP BY catalog_product_index_price
)AS price_index
ON bs.product_id = e.entity_id
LEFT JOIN catalog_category_product
AS at_category_id
ON e.entity_id = ra.entity_pk_value AND ra.store_id = 1 WHERE((at_category_id.category_id IN(' 147',' 201&# 39;,' 148',' 149',' 150',' 155',' 151',&# 39; 156',' 218',' 204',' 205',' 206',' 207&#39 ;)))GROUP BY product_id
ORDER BY catalog_category_product_index
DESC LIMIT 5
答案 0 :(得分:0)
如果您安装了与产品评论相关的任何扩展程序,请将其禁用,然后再尝试。请在管理中刷新缓存并重新登录。