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 (215, 216, 217, 218) 
  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.00212

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 158.5047423,
    "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": 4,
                  "cost": 0.00774628,
                  "filtered": 100,
                  "attached_condition": "cscart_categories.category_id in (215,216,217,218) 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": 4,
                  "rows": 9027,
                  "cost": 5.92627908,
                  "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": 36108,
                  "rows": 1,
                  "cost": 39.98545072,
                  "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": 36108,
                  "rows": 1,
                  "cost": 33.20537492,
                  "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": 36108,
                  "rows": 1,
                  "cost": 43.61286832,
                  "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": 36108,
                  "rows": 1,
                  "cost": 35.76702294,
                  "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
786967 2011 Ice Queen Parrot Products,Parrot Products 786967,232,786968,786969,786970,786971,786972,786973,786974 P,V,V,V,V,V,V,V,V 0,786967,786967,786967,786967,786967,786967,786967,786967 V 786967 0 0 1 <p>Hydration Capacity: 70 oz (2 L)<br><br>Total Capacity: 1000 cu in (16.39 L)<br><br>CamelBak®Got Your Bak&trade; Guarantee: If we built it, we'll Bak it&trade; with our lifetime guarantee. <br><br>Reservoir Features: 1/4 turn - easy open/close cap, lightweight fillport, dryer arms, center baffling and low-profile design, patented Big Bite&trade; Valve, HydroGuard&trade; technology, insulated PureFlow&trade; tube, easy-to-clean wide-mouth opening<br><br>BACK PANEL: Snowshed&trade;<br><br>HARNESS: S-Curved Women's Harness; Therminator&trade; provides easy access for frequent sipping, insulated and fully enclosed to protect against freezing<br><br>BELT: Removable 1" (25 mm) stability<br><br>Additional Features: <br>Tri-Zip design allows easy access to all your gear, compresion, goggle pocket, essentials pocket<br><br>Designed to carry: Helmet, goggles, extra layers, lunch, phone, wallet, keys</p> <p>Reservoir Features: 1/4 turn - easy open/close cap, lightweight fillport, dryer arms, center baffling and low-profile design, patented Big Bite&trade; Valve, HydroGuard&trade; technology, insulated PureFlow&trade; tube, easy-to-clean wide-mouth opening</p>
230 2011 Pit Boss Parrot Products,Parrot Products 230 P 0 P 0 0 0 1 <p>Hydration Capacity: 100 oz (3 L)<br><br>Total Capacity: 1800 cu in (29.50 L)<br><br>CamelBak® Got Your Bak&trade; Guarantee: If we built it, we'll Bak it&trade; with our lifetime guarantee. <br><br>Reservoir Features: Quick Link&trade; System, 1/4 turn - easy open/close cap, lightweight fillport, dryer arms, center baffling and low-profile design, patented Big Bite&trade; Valve, HydroGuard&trade; technology, insulated PureFlow&trade; tube, easy-to-clean wide-mouth opening<br><br>BACK PANEL: Air Director&trade; Snowshed&trade;<br><br>HARNESS: Therminator&trade; provides easy access for frequent sipping, insulated and fully enclosed to protect against freezing<br><br>BELT: Load-bearing with cargo<br><br>Additional Features: <br>Versatile Snowboard / Ski Carry (Diagonal, Vertical or Horizontal), tri-zip quick gear access, gear compression, goggle pocket, essentials pocket<br>Drop-out Probe Pocket for instant probe access -- locate survivors without unloading your pack<br><br>Designed to carry: skis/snowboard, shovel, probe, skins, snowshoes, helmet, goggles, extra layers, lunch, tools, camera, phone, wallet, keys</p>
231 2011 Tycoon Parrot Products,Parrot Products 231 P 0 P 0 0 0 1 <p>Hydration Capacity: 100 oz (3 L)<br><br>Total Capacity: 1125 cu in (18.44 L)<br><br>CamelBak® Got Your Bak&trade; Guarantee: If we built it, we'll Bak it&trade; with our lifetime guarantee. <br><br>Reservoir Features: Quick Link&trade; System, 1/4 turn - easy open/close cap, lightweight fillport, dryer arms, center baffling and low-profile design, patented Big Bite&trade; Valve, HydroGuard&trade; technology, insulated PureFlow&trade; tube, easy-to-clean wide-mouth opening<br><br>BACK PANEL: Snowshed&trade;<br><br>HARNESS: Therminator&trade; provides easy access for frequent sipping, insulated and fully enclosed to protect against freezing<br><br>BELT: Load-bearing<br><br>Additional Features: <br>Snowboard / Ski Carry (Diagonal, Vertical or Horizontal), pack compression, goggle pocket, essentials pocket<br>Drop-out Probe Pocket for instant probe access -- locate survivors without unloading your pack<br><br>Designed to carry: skis/snowboard, shovel, probe, skins or snowshoes, goggles, extra layer, snack, phone, wallet, keys</p> <p>An elegant lace gown with a flattering silhouette, designed for special occasions. Lightweight, refined, and effortlessly timeless.</p>
233 Crystal Lake Warm Weather Sleeping Bag Parrot Products,Parrot Products 233 P 0 P 0 0 0 1 <p>&bull; Coleman&reg; warm weather sleeping bags made for camping temperatures between 40 and 60 degrees<br />&bull; Rectangle shape, 33&rdquo; x 75&rdquo;, fits up to 5&rsquo;11&rdquo; tall<br />&bull; 3 pounds of ThermoTech&reg; insulation<br />&bull; Cotton cover with soft cotton liner<br />&bull; Essential camping gear, sleeping bag for a better night outdoors<br />&bull; Don&rsquo;t forget the Coleman&reg; camping tent to go with your sleeping bags<br />&bull; ComfortSmart&trade; Technology includes:<br />&bull; ZipPlow&trade; plows fabric away from zipper to prevent snags<br />&bull; ComfortCuff&trade; surrounds your face with softness<br />&bull; Roll Control&trade; locks bag in place for easier rolling<br />&bull; FiberLock&trade; prevents insulation from shifting, increases durability<br />&bull; ThermoLock&trade; construction reduces heat loss through the zipper, keeping you warmer<br />&bull; ZipperGlide&trade; tailoring allows smooth zipper operation around the corners<br />&bull; QuickCord&trade; for easy, no tie closure<br />&bull; Commercial Machine washable<br />&bull; Five year limited warranty<br />&bull; Made in China</p>
237 Elite Evanston 8 Tent Parrot Products,Parrot Products 237 P 0 P 0 0 0 1 <p>• 8 person/1 room tent<br>• 12'x12' footprint<br>• Exclusive WeatherTec&trade; System<br>Keeps you dry -- Guaranteed&trade;<br>• Modified dome structure, easy to transport and simple to set up<br>• 6 ft. 2 in. center height<br>• Hinged door (patent pending)<br>• Great for family camping, scout leaders, extended camping trips<br>• Self-rolling windows (patent pending)<br>• Tent includes remote controlled light<br>• Light is 100 lumens<br>• Control airflow with Variflo&trade; adjustable ventilation<br>• Privacy vent window<br>• Interior gear pocket<br>• Electrical access port<br>• Front Porch and Wings provide great outdoor living space<br>• Easy set up with continuous, color coded pole sleeves and shock-corded poles<br>• Easy instructions sewn into durable carry bag<br>• Carry bag also includes separate sacks for poles and stakes<br>• Fly: Polyester taffeta 75D <br>• Mesh: Polyester 68D inner tent<br>• Floor: Polyethylene 1000D-140g/sqm floor<br>• Poles: 11 mm, 7.9 mm and 6.3 mm fiberglass<br>• Limited 1 year warranty<br>• Made in China</p>
235 Everglades Cold Weather Sleeping Bag Parrot Products,Parrot Products 235 P 0 P 0 0 0 1 <p>&bull; The perfect sleeping bag for extreme sleeping conditions between 10 and 30 degrees<br />&bull; 3 lbs Coletherm&reg; insulation<br />&bull; 33&rdquo; x 85&rdquo;, fits up to 5&rsquo;11&rdquo; tall<br />&bull; Diamond ripstop cover to polyester liner<br />&bull; Double-batt, offset quilt construction eliminates potential cold spots<br />&bull; Essential camping gear, sleeping bag for a better night outdoors<br />&bull; Semi-sculpted hood surrounds head with warmth, keeps head off the ground<br />&bull; Fleece foot section provides extra warmth<br />&bull; Two way zipper for maximum ventilation<br />&bull; Stuff sack included<br />&bull; Made in China<br />&bull; Commercial Machine washable<br />&bull; Five year limited warranty</p>
236 WeatherMaster Screened 6 Tent With Hinged Door Parrot Products,Parrot Products 236 P 0 P 0 0 0 1 <p>&bull; 6 person tent/ 2 rooms<br />&bull; 17'x9' footprint<br />&bull; Cabin structure; heavier, stronger, better for extended stay camping<br />&bull; 6 ft. 10 in. center height<br />&bull; 2 Doors - Front Door is Hinged (Patent Pending)<br />&bull; Strong steel and fiberglass frame<br />&bull; Control airflow with Variflo&trade; adjustable ventilation<br />&bull; Privacy vent window<br />&bull; Interior gear pocket<br />&bull; Electrical access port<br />&bull; Reverse angle windows<br />&bull; Easy set up with continuous, color coded pole sleeves and shock-corded poles<br />&bull; Easy instructions sewn into durable carry bag<br />&bull; Carry bag also includes separate sacks for poles and stakes<br />&bull; Fly: Polyester taffeta 75D <br />&bull; Mesh: Polyester 68D inner tent<br />&bull; Floor: Polyethylene 1000D-140g/sqm floor<br />&bull; Limited 1 year warranty<br />&bull; Made in China</p>
234 White Water™ Cool Weather Sleeping Bag Parrot Products,Parrot Products 234 P 0 P 0 0 0 1 <p>• Coleman® cool weather sleeping bags made for camping temperatures between 30 and 50 degrees<br>• Rectangle shape, big & tall 39” x 84”, fits up to 6’4” tall<br>• 4 pounds of Coletherm® insulation<br>• Polyester cover with cotton flannel liner<br>• Groundbreaking headrest shape makes keeping your head off the ground or floor easy<br>• Essential camping gear, sleeping bag for a better night outdoors<br>• Don’t forget the Coleman® camping tent to go with your sleeping bags<br>• ComfortSmart&trade; Technology includes:<br>• ZipPlow&trade; plows fabric away from zipper to prevent snags<br>• ComfortCuff&trade; surrounds your face with softness<br>• Roll Control&trade; locks bag in place for easier rolling<br>• FiberLock&trade; prevents insulation from shifting, increases durability<br>• ThermoLock&trade; construction reduces heat loss through the zipper, keeping you warmer<br>• ZipperGlide&trade; tailoring allows smooth zipper operation around the corners<br>• QuickCord&trade; for easy, no tie closure<br>• Commercial Machine washable<br>• Five year limited warranty<br>• Made in China</p>