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: 25 products):
Stock Status "0": 14 products
Stock Status "1": 11 products
Product Samples:
Pos | ID | SKU | Name | Stock |
---|---|---|---|---|
1 | 275 | 019707820011 | Triple Wall Hook For Coat Hat & Scarf Or | 0 (OUT OF STOCK) |
2 | 279 | 255700410004 | Hummingbird Plant Hanger Cast Iron Flowe | 0 (OUT OF STOCK) |
3 | 281 | 273107820003 | Cast Iron Plant Hanger Basket Hook Ornat | 0 (OUT OF STOCK) |
4 | 285 | 255707820012 | Hummingbird S Style Plant Hook Cast Iron | 0 (OUT OF STOCK) |
5 | 287 | 255707820007 | Cast Iron S Style Plant Hook Hummingbird | 0 (OUT OF STOCK) |
6 | 289 | 273007820004 | Plant Hanger Bird Bath Feeder Cast Iron | 0 (OUT OF STOCK) |
7 | 291 | 255707820021 | Pixie Fairy Cast Iron Plant Hanger Verdi | 0 (OUT OF STOCK) |
8 | 290 | 272607820004 | Decorative Plant Hanger Cast Iron Flower | 0 (OUT OF STOCK) |
9 | 292 | 110102740002 | Hummingbird Plant Hanger Cast Iron Flowe | 0 (OUT OF STOCK) |
10 | 293 | 255707820002 | Decorative Plant Hanger Ornate Victorian | 0 (OUT OF STOCK) |
11 | 295 | 255707820003 | Hummingbird Plant Hanger Flower Hook Dec | 0 (OUT OF STOCK) |
12 | 300 | 272607820001 | Rustic Cast Iron Plant Hanger Bracket Fl | 0 (OUT OF STOCK) |
13 | 301 | 110100410001 | Cast Iron Plant Hanger Basket Hook Pixie | 0 (OUT OF STOCK) |
14 | 304 | 255707820006 | Decorative Watering Can Cast Iron Plant | 0 (OUT OF STOCK) |
15 | 276 | 019707820014 | Cast Iron Wall Hook Rack Ornate Victoria | 1 (IN STOCK) |
16 | 280 | 273007820000 | Decorative Rooster Plant Hanger Flower H | 1 (IN STOCK) |
17 | 282 | 255700410002 | Cast Iron Plant Hanger Ornate Pattern 10 | 1 (IN STOCK) |
18 | 284 | 255707820020 | Plant Hanger Chickadee Bird Cast Iron Fl | 1 (IN STOCK) |
19 | 286 | 273007820001 | Crowing Rooster Cast Iron Plant Hanger F | 1 (IN STOCK) |
20 | 298 | 255707820016 | Love Birds Cast Iron Decorative Plant Ha | 1 (IN STOCK) |
21 | 297 | 272607820010 | Plant Hanger Vine Brown Flower Basket Po | 1 (IN STOCK) |
22 | 299 | 255707820017 | Birds In Tree Decorative Plant Hanger Ca | 1 (IN STOCK) |
23 | 303 | 110100410004 | Decorative Chickadee Bird Design Cast Ir | 1 (IN STOCK) |
24 | 302 | 263907820000 | Cast Iron S Style Plant Hook Flower Hang | 1 (IN STOCK) |
25 | 294 | 255707820000 | Plant Hanger Decorative Hummingbird Cast | 1 (IN STOCK) |