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) 
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.company_id = 1 
  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.company_id = 1 
  AND products.master_product_status IN ('A') 
  AND products.product_type != 'D' 
GROUP BY 
  product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  0, 12

Query time 0.00216

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 193.2243364,
    "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",
                    "wdbi_master_product_status_master_product_id_produc_46b93429beec"
                  ],
                  "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.company_id = 1 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": "const",
                  "possible_keys": ["PRIMARY"],
                  "key": "PRIMARY",
                  "key_length": "4",
                  "used_key_parts": ["company_id"],
                  "ref": ["const"],
                  "loops": 45135,
                  "rows": 1,
                  "cost": 41.50651385,
                  "filtered": 100,
                  "attached_condition": "trigcond(companies.`status` = 'A')"
                }
              },
              {
                "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>
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>