InstockProductsFirst Debug
SQL Query:
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`, IFNULL(review_summary.reviews_count, 0) AS `reviews_count`, IFNULL(review_summary.rating_summary, 0) AS `rating_summary`, MAX(stock.stock_status) AS `stock_status` 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 = '1' LEFT JOIN `review_entity_summary` AS `review_summary` ON e.entity_id = review_summary.entity_pk_value AND review_summary.store_id = 1 AND review_summary.entity_type = (SELECT `review_entity`.`entity_id` FROM `review_entity` WHERE (entity_code = 'product')) LEFT JOIN `cataloginventory_stock_status` AS `stock` ON e.entity_id = stock.product_id GROUP BY `e`.`entity_id` ORDER BY `stock`.`stock_status` DESC
ORDER BY Clauses:
Total ORDER BY clauses: 1 Order #1: stock.stock_status DESC
Stock Distribution (Total: 17 products):
Stock Status "0": 16 products
Stock Status "1": 1 products
Product Samples:
Pos | ID | SKU | Name | Stock |
---|---|---|---|---|
1 | 21 | 283344114097 | Nautical Shelf Bracket Ship Anchor Custo | 0 (OUT OF STOCK) |
2 | 1705 | 254107820003-1 | Wall Shelf Bracket Cast Iron Brace Vine | 0 (OUT OF STOCK) |
3 | 1703 | 273107820002-1 | Nautical Ship Anchor Cast Iron Shelf Bra | 0 (OUT OF STOCK) |
4 | 1704 | 273107820002 | Nautical Ship Anchor Cast Iron Shelf Bra | 0 (OUT OF STOCK) |
5 | 1706 | 272607820008 | S-Hook Plant Hanger Flower Basket Decor | 0 (OUT OF STOCK) |
6 | 1709 | 276983831741 | Rocketfish 8k Ultra High Speed 15ft HDMI | 0 (OUT OF STOCK) |
7 | 1708 | 276981428196 | WWE Elite Collection Undertaker Figure - | 0 (OUT OF STOCK) |
8 | 1711 | 276983927536 | Sanus BSA-IWP1-W1 In-Wall Cable Conceale | 0 (OUT OF STOCK) |
9 | 1712 | 276983994123 | Sanus - On-Wall Cable Concealer High Cap | 0 (OUT OF STOCK) |
10 | 1710 | 276983911682 | Rocketfish - 12' 4K UltraHD/HDR In-Wall | 0 (OUT OF STOCK) |
11 | 1714 | 276987123754 | Helios In-Wall Power Outlet Relocation K | 0 (OUT OF STOCK) |
12 | 1720 | 254107820007 | Ornate Cast Iron Shelf Bracket Decorativ | 0 (OUT OF STOCK) |
13 | 1716 | 276987506055 | Women's Shannon Heels with Memory Foam I | 0 (OUT OF STOCK) |
14 | 1721 | 276992410457 | Mcfarlane Batman DC Retro 66 Classics TV | 0 (OUT OF STOCK) |
15 | 1722 | 276992464944 | McFarlane DC Retro 66 Classic TV Series | 0 (OUT OF STOCK) |
16 | 1723 | 276992467087 | Hasbro Star Wars George Lucas Stormtroop | 0 (OUT OF STOCK) |
17 | 12 | 254207820000 | Nautical Shelf Bracket Clamshell Beach S | 1 (IN STOCK) |