SELECT 
  SQL_CALC_FOUND_ROWS (
    CASE WHEN products.parent_product_id <> 0 THEN products.parent_product_id ELSE products.product_id END
  ) AS product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  GROUP_CONCAT(
    products.product_id 
    ORDER BY 
      products.parent_product_id ASC, 
      products.product_id ASC
  ) AS product_ids, 
  GROUP_CONCAT(
    products.product_type 
    ORDER BY 
      products.parent_product_id ASC, 
      products.product_id ASC
  ) AS product_types, 
  GROUP_CONCAT(
    products.parent_product_id 
    ORDER BY 
      products.parent_product_id ASC, 
      products.product_id ASC
  ) AS parent_product_ids, 
  products.product_type, 
  products.parent_product_id, 
  products.master_product_offers_count, 
  products.master_product_id, 
  products.company_id, 
  descr1.full_description as full_description, 
  descr1.short_description as short_description 
FROM 
  cscart_products as products 
  LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id 
  AND descr1.lang_code = 'en' 
  LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id 
  AND prices.lower_limit = 1 
  LEFT JOIN cscart_companies AS companies ON companies.company_id = products.company_id 
  INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_categories.storefront_id IN (0, 1) 
  LEFT JOIN cscart_master_products_storefront_offers_count AS master_products_storefront_offers_count ON master_products_storefront_offers_count.product_id = products.product_id 
  AND master_products_storefront_offers_count.storefront_id = 1 
WHERE 
  1 
  AND cscart_categories.category_id IN (223, 224, 225, 226, 227) 
  AND (
    companies.status IN ('A') 
    OR products.company_id = 0
  ) 
  AND (
    products.usergroup_ids = '' 
    OR FIND_IN_SET(0, products.usergroup_ids) 
    OR FIND_IN_SET(1, products.usergroup_ids)
  ) 
  AND products.status IN ('A') 
  AND prices.usergroup_id IN (0, 0, 1) 
  AND products.master_product_status IN ('A') 
  AND products.master_product_id = 0 
  AND (
    products.company_id > 0 
    OR (
      master_products_storefront_offers_count.count > 0
    )
  ) 
  AND products.product_type != 'D' 
GROUP BY 
  product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  0, 128

Query time 0.00284

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 232.4605598,
    "filesort": {
      "sort_key": "descr1.product, products.product_id",
      "temporary_table": {
        "filesort": {
          "sort_key": "case when products.parent_product_id <> 0 then products.parent_product_id else products.product_id end",
          "temporary_table": {
            "nested_loop": [
              {
                "table": {
                  "table_name": "cscart_categories",
                  "access_type": "range",
                  "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["category_id"],
                  "loops": 1,
                  "rows": 5,
                  "cost": 0.00948507,
                  "filtered": 100,
                  "attached_condition": "cscart_categories.category_id in (223,224,225,226,227) and (cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H') and cscart_categories.storefront_id in (0,1)"
                }
              },
              {
                "table": {
                  "table_name": "products_categories",
                  "access_type": "ref",
                  "possible_keys": ["PRIMARY", "pt"],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["category_id"],
                  "ref": ["u985510652_ecartify_abhi.cscart_categories.category_id"],
                  "loops": 5,
                  "rows": 9027,
                  "cost": 7.40784885,
                  "filtered": 100
                }
              },
              {
                "table": {
                  "table_name": "products",
                  "access_type": "eq_ref",
                  "possible_keys": [
                    "PRIMARY",
                    "status",
                    "idx_master_product_id",
                    "wdbi_master_product_status_master_product_id_produc_46b93429beec",
                    "wdbi_master_product_id_master_product_status_produc_611007cab252",
                    "wdbi_master_product_id_master_product_status_produc_37d8c9a2112a",
                    "wdbi_master_product_id_master_product_status_status_1d4dcd83320a",
                    "wdbi_master_product_id_master_product_status_produc_909a0cf2d55b",
                    "wdbi_master_product_id_master_product_status_status_ff7ba2ae2fb0"
                  ],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["product_id"],
                  "ref": [
                    "u985510652_ecartify_abhi.products_categories.product_id"
                  ],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 48.0595606,
                  "filtered": 100,
                  "attached_condition": "products.master_product_id = 0 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.master_product_status = 'A' and products.product_type <> 'D'"
                }
              },
              {
                "table": {
                  "table_name": "companies",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY"],
                  "key": "PRIMARY",
                  "key_length": "4",
                  "used_key_parts": ["company_id"],
                  "ref": ["u985510652_ecartify_abhi.products.company_id"],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 40.3713686,
                  "filtered": 100,
                  "attached_condition": "trigcond(companies.`status` = 'A' or products.company_id = 0)"
                }
              },
              {
                "table": {
                  "table_name": "master_products_storefront_offers_count",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY", "idx_storefront_id"],
                  "key": "PRIMARY",
                  "key_length": "8",
                  "used_key_parts": ["product_id", "storefront_id"],
                  "ref": [
                    "u985510652_ecartify_abhi.products_categories.product_id",
                    "const"
                  ],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 40.3713686,
                  "filtered": 100,
                  "attached_condition": "trigcond(products.company_id > 0 or master_products_storefront_offers_count.count > 0) and trigcond(master_products_storefront_offers_count.product_id = products_categories.product_id)"
                }
              },
              {
                "table": {
                  "table_name": "descr1",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY", "product_id"],
                  "key": "PRIMARY",
                  "key_length": "9",
                  "used_key_parts": ["product_id", "lang_code"],
                  "ref": [
                    "u985510652_ecartify_abhi.products_categories.product_id",
                    "const"
                  ],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 51.6869782,
                  "filtered": 100,
                  "attached_condition": "trigcond(descr1.lang_code = 'en')"
                }
              },
              {
                "table": {
                  "table_name": "prices",
                  "access_type": "ref",
                  "possible_keys": [
                    "usergroup",
                    "product_id",
                    "lower_limit",
                    "usergroup_id",
                    "wdbi_product_id_lower_limit_usergroup_id_price_eff1727beeef",
                    "wdbi_usergroup_id_lower_limit_product_id_92b7e8f6a250",
                    "wdbi_product_id_lower_limit_usergroup_id_price_perc_3b2301d551d0",
                    "wdbi_lower_limit_usergroup_id_product_id_b93629431718"
                  ],
                  "key": "product_id",
                  "key_length": "3",
                  "used_key_parts": ["product_id"],
                  "ref": [
                    "u985510652_ecartify_abhi.products_categories.product_id"
                  ],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 44.55394988,
                  "filtered": 100,
                  "attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
                  "using_index": true
                }
              }
            ]
          }
        }
      }
    }
  }
}

Result

product_id product company_name product_ids product_types parent_product_ids product_type parent_product_id master_product_offers_count master_product_id company_id full_description short_description
78 adizero Rush Shoes Parrot Products,Parrot Products 78 P 0 P 0 0 0 1 <p>Get moving in the lightweight adizero&trade; Rush shoes by adidas. These featherweight, dynamic men's running shoes are just 7.5 ounces of high-mileage style, with adiPRENE&reg;+ support in the forefoot, a light synthetic upper and a thin rubber outsole for a close</p>
79 adiZero Tempaia Shoes Parrot Products,Parrot Products 79 P 0 P 0 0 0 1 <p> The adiZero™ Tempaia shoes by adidas are lightweight, breathable tennis shoes designed for multi-court use. They feature a breathable upper, adiPRENE®+ in the forefoot for propulsion, adiPRENE® heel cushioning and EXTENDED TORSION® for support. </p>
11 Collegiate 72 Tee Parrot Products,Parrot Products 11 P 0 P 0 0 0 1 <p>It's not how old you are, it's how stylish, and this men's adidas Originals Collegiate 72 Tee shirt feels just as fresh as it was the day the Trefoil was born in 1972. That's why this t-shirt features a collegiate "72" on the front.</p>
41 Gift Set (Onesie Plus Socks) Parrot Products,Parrot Products 41 P 0 P 0 0 0 1 <p>Welcome the new addition with this adidas Originals Gift Set, featuring a one-piece romper and matching socks. The romper has a sleepy-time Trefoil character on the back, while the front bristles with fun in vibrant stripes.</p> <div class="prodDetail"> <h3>Details</h3> <ul> <li>Crewneck</li> <li>Full snap-button front for easy on and off</li> <li>Allover yarn-dyed stripe pattern on front</li> <li>Solid-color back with Trefoil-inspired graphic</li> <li>Matching socks included</li> <li>95% cotton / 5% elastane single jersey</li> <li>Imported</li> </ul> </div>
81 Minnetonka Original Cowhide Driving Moc Parrot Products,Parrot Products 81 P 0 P 0 0 0 1 <div class="linePadding leadingEquity">Authentic designs. Free-spirited heritage. Shaping the moccasin's place in history since 1946.</div> <div class="linePadding">Leather</div> <ul class="equityBullets firstSet"> <li>&bull; Genuine leather construction </li> <li>&bull; Lace-up front </li> <li>&bull; Long-wearing nub bottom </li> <li>&bull; Cushioned leather insole </li> <li>&bull; Contrast stitching </li> </ul>
107 Montblanc Classic Collection Money Clip Parrot Products,Parrot Products 107 P 0 P 0 0 0 1 <p>Platinum-plated money clip with black onyx inlay</p>
109 Montblanc Contemporary Collection Key Ring with Montblanc emblem Parrot Products,Parrot Products 109 P 0 P 0 0 0 1 <p>Stainless steel key ring with brown calf leather</p>
91 Montblanc Nicolas Rieussec Chronograph Automatic Parrot Products,Parrot Products 91 P 0 P 0 0 0 1 <p>43 mm watch with stainless steel case, Montblanc Calibre MB R200, monopusher chronograph with automatic winding, anthracite-coloured dial with applique hour circle, date display, second time zone with day/night display, chronograph counters with rotating discs.</p>
92 Montblanc TimeWalker Automatic Parrot Products,Parrot Products 92 P 0 P 0 0 0 1 <p>42 mm stainless steel watch with black dial, red-gold plated hands and numerals, automatic movement, date display, black alligator-skin strap</p>
34 Nike "Untouchable" Women's Tank Top Parrot Products,Parrot Products 34 P 0 P 0 0 0 1 <div class="text description dark-grey-heather-dark-grey-heather-red"> <div class="product-description-component"> <p><strong>The Nike "Untouchable" Tank Top: Sleeveless tribute to '72</strong></p> Celebrating a banner year in sports with vibrant print detail, the Nike "Untouchable" Women's Tank Top offers a motion-friendly racerback silhouette in a body-hugging fit.<br /> <p><strong>Benefits</strong></p> <li>Slim fit contours to your body</li> <li>Rib scoop-neck and armholes for durability and comfort</li> <li>Racerback for enhanced range of movement</li> <li>Screen-print at front</li> <br /> <p><strong>Additional Details</strong></p> <li>Fabric: 100% cotton</li> <li>Machine wash</li> <li>Imported</li> </div> </div>
15 Nike Chambray Super Runner Men's Jacket ACME Corp 15 P 0 P 0 0 0 2 <div class="text description black-white"> <div class="product-description-component"> <p><strong>The Nike Chambray Super Runner Jacket: A durable, updated classic </strong></p> <br /> <p>The timeless Windrunner design gets a premium upgrade in the Nike Chambray Super Runner Men's Jacket. Created with tough, water-resistant fabric and a mesh lining, this jacket combines breathability and protection from the elements.</p> <br /> <p><strong>Benefits</strong></p> <li>Hood with drawcord for an adjustable fit</li> <li>Overlay at yoke and raglan sleeves for style and enhanced protection</li> <li>Rib cuffs and hem for a fit that stays in place</li> <li>Mesh lining for enhanced ventilation</li> <li>Durable, wind-resistant fabric to protect against the elements</li> <br /> <p><strong>Additional Details</strong></p> <li>Side zip pockets for secure storage</li> <li>Fabric: Body: 100% cotton. Lining and overlay: 100% polyester.</li> <li>Machine wash</li> <li>Imported</li> </div> </div> <p>The timeless Windrunner design gets a premium upgrade in the Nike Chambray Super Runner Men's Jacket. Created with tough, water-resistant fabric and a mesh lining, this jacket combines breathability and protection from the elements.</p>
31 Nike Classic Solid Women's Jersey Shorts Parrot Products,Parrot Products 31 P 0 P 0 0 0 1 <div class="text dark-grey-heather-white description"> <div class="product-description-component"> <p><strong>The Nike Classic Women's Shorts: Versatile comfort</strong></p> <br /> <p>With a simple and sporty design, the comfortable Nike Classic Solid Women's Jersey Shorts are a must-have for every gym bag.</p> <br /> <p><strong>Benefits</strong></p> <li>Elastic waist with drawcord for an athletic fit</li> <li>Vented hem for a full range of motion</li> <br /> <p><strong>Additional Details</strong></p> <li>Fabric: 61% cotton/33% polyester/6% spandex</li> <li>Machine wash</li> <li>Imported</li> </div> </div>
38 Nike Futura Unravel Women's T-Shirt Parrot Products,Parrot Products 38 P 0 P 0 0 0 1 <div class="text black-gold description"> <div class="product-description-component"> <p><strong>The Nike Futura Shirt: A flattering fit with bold pops of color</strong></p> <br /> <p>It's a style explosion in the Nike Futura Unravel Women's T-Shirt, a high-energy essential with a flattering design and playful bursts of color.</p> <br /> <p><strong>Benefits</strong></p> <li>Extended rib V-neck for a flattering, comfortable fit</li> <li>Reflective screen-print at front for a pop of color</li> <li>A slim fit that's contoured to your body</li> <br /> <p><strong>Additional Details</strong></p> <li>Fabric: 100% cotton</li> <li>Machine wash</li> <li>Imported</li> </div> </div>
80 Nike Tenkay Slip TXTL Women's Shoe Parrot Products,Parrot Products 80 P 0 P 0 0 0 1 <div class="black-white-black-white text description"> <div class="product-description-component"> <p><strong>The Nike Tenkay Slip TXTL: Casual-cool with a sporty side</strong></p> Versatile and super comfortable, the Nike Tenkay Slip TXTL Women's Shoe looks as good as it feels. With a soft textile upper and a durable rubber outsole, this shoe provides excellent traction on a variety of surfaces.<br /> <p><strong>Benefits</strong></p> <li>Textile upper with suede overlays for a comfortable fit</li> <li>Elastic slip-on entry for easy on and off</li> <li>Flex grooves at outsole for enhanced flexibility</li> <br /> <p><strong>Additional Details</strong></p> <li>Removable ankle strap for a versatile fit</li> <li>Rubber outsole for durability</li> </div> </div>
102 PR 100 Women's White Quartz Watch Parrot Products,Parrot Products 102 P 0 P 0 0 0 1 <p>Unrivaled best seller that is true to its name, the PR 100 is certainly precise and hugely popular.<br /> <br /> A combination of tradition with up-to-the-minute looks using quality materials on the outside and Swiss reliability on the inside. This ironic watch family offers lady and gent sizes to prevent any rivalry, although as far as style is concerned, the race is on! The Swiss made quartz ETA movement has battery end-of-life indicator, a scratch resistant sapphire crystal and date indicator. Features include a stainless steel bracelet, a magnificent white dial, and water resistance up to 100 meters.</p>
28 Run Perf 7/8 Ti Parrot Products,Parrot Products 28 P 0 P 0 0 0 1 <p>adidas Run Perf 7/8 Ti , new to site, more details coming soon.</p>
280 T-shirt, Color: Black Parrot Products,Parrot Products 280,281 P,V 0,280 P 0 0 0 1
282 T-shirt, Color: Blue Parrot Products,Parrot Products 282,283,284 P,V,V 0,282,282 P 0 0 0 1
2509 T-shirt, Color: Green Parrot Products,Parrot Products 2509,2510,2511 P,V,V 0,2509,2509 P 0 0 0 1
2503 T-shirt, Color: Pink Parrot Products,Parrot Products 2503,2504,2505 P,V,V 0,2503,2503 P 0 0 0 1
2497 T-shirt, Color: Red Parrot Products,Parrot Products 2497,2498,2499 P,V,V 0,2497,2497 P 0 0 0 1
2506 T-shirt, Color: Sky Blue Parrot Products,Parrot Products 2506,2507,2508 P,V,V 0,2506,2506 P 0 0 0 1
278 T-shirt, Color: White Parrot Products,Parrot Products 278,279 P,V 0,278 P 0 0 0 1
2500 T-shirt, Color: Yellow Parrot Products,Parrot Products 2500,2501,2502 P,V,V 0,2500,2500 P 0 0 0 1
3457 TEST Parrot Products,Parrot Products 3457 P 0 P 0 0 0 1
7 Trefoil Hoodie Parrot Products,Parrot Products 7 P 0 P 0 0 0 1 <p>The adidas Originals Trefoil Hoodie has been a streetwear essential for decades, with its characteristic big hood, kangaroo pocket and large Trefoil. Now it's your turn to join the Trefoil men's hoodie crew and carry the legend forward.</p>
27 Trefoil Logo Hoodie Parrot Products,Parrot Products 27 P 0 P 0 0 0 1 <div class="productText" style="display: block;"> <div class="prodDesc">This classic women's adidas Originals Trefoil Logo Hoodie is made of comfortable fleece with a drawcord hood, a kangaroo pocket and an outsize logo. The pullover hoodie also features extra-long cuffs and hem for feminine style.</div> <div class="prodDetail"> <h3>Details</h3> <ul> <li>Kangaroo pocket</li> <li>Drawcord-adjustable hood</li> <li>Ribbed long cuffs and wider hem</li> <li>Large Trefoil on front</li> <li>70% cotton / 30% polyester fleece</li> <li>Imported</li> </ul> </div> </div> <p>This classic women's adidas Originals Trefoil Logo Hoodie is made of comfortable fleece with a drawcord hood, a kangaroo pocket and an outsize logo. The pullover hoodie also features extra-long cuffs and hem for feminine style.</p>