SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id 
FROM 
  cscart_products as products 
  INNER JOIN cscart_product_features_values as c_var ON c_var.product_id = products.product_id 
  AND c_var.lang_code = 'en' 
  AND c_var.variant_id = 8315 
  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_product_popularity as popularity ON popularity.product_id = products.product_id 
WHERE 
  1 
  AND companies.status IN ('A') 
  AND (
    products.amount > 0 
    OR products.tracking = 'D'
  ) 
  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.parent_product_id = 0 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  popularity.total desc, 
  products.product_id ASC 
LIMIT 
  0, 80

Query time 0.01259

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "115.90"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "companies",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY"
              ],
              "rows_examined_per_scan": 10,
              "rows_produced_per_join": 1,
              "filtered": "10.00",
              "cost_info": {
                "read_cost": "1.46",
                "eval_cost": "0.10",
                "prefix_cost": "1.56",
                "data_read_per_join": "6K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
            }
          },
          {
            "table": {
              "table_name": "c_var",
              "access_type": "ref",
              "possible_keys": [
                "variant_id",
                "lang_code",
                "product_id",
                "idx_product_feature_variant_id"
              ],
              "key": "variant_id",
              "used_key_parts": [
                "variant_id"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 227,
              "rows_produced_per_join": 73,
              "filtered": "32.52",
              "cost_info": {
                "read_cost": "56.75",
                "eval_cost": "7.38",
                "prefix_cost": "81.01",
                "data_read_per_join": "57K"
              },
              "used_columns": [
                "product_id",
                "variant_id",
                "lang_code"
              ],
              "attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`c_var`.`lang_code` = 'en')"
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "status",
                "idx_parent_product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.c_var.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 3,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "18.45",
                "eval_cost": "0.37",
                "prefix_cost": "106.85",
                "data_read_per_join": "16K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "amount",
                "usergroup_ids",
                "tracking",
                "parent_product_id"
              ],
              "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = `softwarepirmam_hewadelivard_cscart_4`.`companies`.`company_id`) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`amount` > 0) or (`softwarepirmam_hewadelivard_cscart_4`.`products`.`tracking` = 'D')) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "product_id",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.c_var.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 3,
              "filtered": "99.93",
              "cost_info": {
                "read_cost": "0.92",
                "eval_cost": "0.37",
                "prefix_cost": "108.14",
                "data_read_per_join": "88"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          },
          {
            "table": {
              "table_name": "popularity",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "total"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.c_var.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 3,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.92",
                "eval_cost": "0.37",
                "prefix_cost": "109.43",
                "data_read_per_join": "118"
              },
              "used_columns": [
                "product_id",
                "total"
              ]
            }
          },
          {
            "table": {
              "table_name": "descr1",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.c_var.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 3,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.94",
                "eval_cost": "0.37",
                "prefix_cost": "110.73",
                "data_read_per_join": "16K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "pt",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.c_var.product_id"
              ],
              "rows_examined_per_scan": 2,
              "rows_produced_per_join": 7,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "1.84",
                "eval_cost": "0.74",
                "prefix_cost": "113.32",
                "data_read_per_join": "118"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "softwarepirmam_hewadelivard_cscart_4.products_categories.category_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "1.84",
                "eval_cost": "0.04",
                "prefix_cost": "115.90",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` in ('A','H')) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id
6780 Kenwood Garment Steamer GSP65 – 1500W, 2L Capacity, 45s Heat-Up, Up to 50 Minutes Continuous Use, Folding Hanger, Trouser Press & Glove Delivard Store P 0
6689 Kenwood Digital Air Fryer 5L HFP52 Delivard Store P 0
6769 Kenwood SVM12 Cordless Vacuum Cleaner – 2-in-1, 160W, 1L Capacity, HEPA Filter, 22.2V Lithium Battery, 45-Minute Runtime, Red Delivard Store P 0
6686 Kenwood HFP90 Multifunction Healthy Air Fryer Oven Delivard Store P 0
6688 Kenwood Digital Air Fryer 7L HFP72 Delivard Store P 0
6785 Kenwood Steam Iron STP91 – 3000W, 350ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Cleaning Function Delivard Store P 0
6690 Kenwood Dual K Healthy Fry Airfryer HFP70 Delivard Store P 0
6670 Kenwood JEM50 Juice Extractor – 700W, 75mm Wide Feed Tube, 2-Speed, Anti-Drip, Dishwasher-Safe Delivard Store P 0
6799 Kenwood Steam Iron STP90 – 3000W, 350ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Clean Delivard Store P 0
6687 Kenwood Healthy Air Fryer 7L Delivard Store P 0
6773 Kenwood CMM10 Drip Coffee Maker – 12-Cup Capacity, Permanent Filter, 40-Minute Auto Shut-Off, Keep Warm Plate Delivard Store P 0
6795 Kenwood Premium Power Blender BLM91 Delivard Store P 0
6777 Kenwood Food Processor FDP03 – 750W, 2L Bowl, 1.8L Blender, 3 Slicing Discs, Dough Maker Delivard Store P 0
6784 Kenwood Steam Iron STP75 – 2600W, 350ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Cleaning Function Delivard Store P 0
6691 Kenwood Blender Smoothie Maker BLP10 Delivard Store P 0
6807 Kenwood SSP20 Steam Station – 2600W, 1.8 L Tank, 180g Steam Shot, Ceramic Soleplate, Auto-Off Delivard Store P 0
6770 Kenwood HVP19 Handheld Vacuum Cleaner – Cordless, 14.8V, 500ml Dust Capacity, HEPA Filter, 3 Attachments, Silver Delivard Store P 0
6781 Kenwood Steam Iron STP50 – 2100W, 300ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Cleaning Function Delivard Store P 0
6783 Kenwood Steam Iron STP70 – 2600W, 350ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Cleaning Function Delivard Store P 0
6776 Kenwood Health Grill HGM30 – 2000W, Adjustable Temperature Control, Non-Stick Grill Plates Delivard Store P 0
6797 Kenwood Easy Chop+ Chopper with Glass Bowl CHP62 Delivard Store P 0
6774 Kenwood Health Grill HGM50 – 1800W, Non-Stick Grilling Surface, Temperature Control, Sleek Metal Design Delivard Store P 0
6790 Kenwood Blender BLP15 Delivard Store P 0
7315 Kenwood ZJP00 Cordless Electric Kettle – 1.7 L, 2200W, Auto-Shut Off, 360° Base Delivard Store P 0
6746 Kenwood MWM42 42 L Microwave Oven with Grill – Multi-Function, 11 Power Levels Delivard Store P 0
6808 Kenwood HDP100 Triblade Hand Blender – 600W, 1 Speed + Turbo, White/Green Delivard Store P 0
6731 Kenwood MWM20 - WH 20 L Microwave Oven – 700 W, 5 Power Levels, Defrost Function Delivard Store P 0
6792 Kenwood Glass Blender with Mill BLP44 Delivard Store P 0
6732 Kenwood MWM22 22L Microwave Oven – 700W, 5 Power Levels, Digital Display Delivard Store P 0
6744 Kenwood MWM31 30 L Microwave Oven with Grill & Convection – 900W, 5 Power Levels, Digital Timer Delivard Store P 0
6756 Kenwood MWM25 25 L Microwave Oven with Grill – Compact Design, 11 Power Levels Delivard Store P 0
6782 Kenwood Steam Iron STP60 – 2200W, 300ml Capacity, Ceramic Soleplate, Vertical Steam, Self-Cleaning Function Delivard Store P 0
6673 Kenwood ZJG08 Cordless Glass Electric Kettle – 1.7L, 2200W, Auto Shut-Off, Removable Mesh Filter Delivard Store P 0
6714 Kenwood KHH01 HomeBake Stand Mixer – 5 L Bowl, Planetary Mixing, 6 Speeds + Pulse Delivard Store P 0
6789 Kenwood BLM45 Power Cam Blender Delivard Store P 0
6796 Kenwood Blender Smoothie Maker BLP10 Delivard Store P 0
6694 Kenwood Blend X-Tract Compact Blender BLP41 Delivard Store P 0
6778 Kenwood Food Processor FDP301 – 800W, 2.1L Capacity, 1.2L Blender, 2 Speeds + Pulse Delivard Store P 0
6793 Kenwood Personal Blender BSP70 Delivard Store P 0
6674 Kenwood ZJP01 Cordless Electric Kettle – 1.7L, 2200W, Auto Shut-Off, Removable Mesh Filter Delivard Store P 0
6718 Kenwood MG470 Meat Grinder – 1500 W, Fine/Medium/Coarse Plates, Sausage & Kebbe Maker Delivard Store P 0
6816 Kenwood JEP02 Juicer / Extractor – 800W, 2 Speeds, Multi-Functional Delivard Store P 0
6775 Kenwood Health Grill HGM80 – 2000W, 3 Grilling Positions, Adjustable Temperature Control, Timer Delivard Store P 0
6809 Kenwood HDP104 Hand Blender – Medium Power, Multi-Purpose Delivard Store P 0
6715 Kenwood KHC29 Prospero+ Stand Mixer – 4.3L Bowl, 1000W, Planetary Mixing Delivard Store P 0
6758 Kenwood MWM30 30 L Microwave Oven with Grill – Multi-Function, 5 Power Levels Delivard Store P 0
6766 Kenwood Drum Vacuum Cleaner VDM60 – 2200W, 25L Capacity, 8m Power Cord, Removable & Washable Filter, Multi-Surface Tools Delivard Store P 0
6768 Kenwood VBP60 Bagless Vacuum Cleaner – 2200W, 2.5L Capacity, HEPA Filter, Multi-Cyclonic Technology, Black Delivard Store P 0
6717 Kenwood OWMG510 Food Grinder – 1600W Heavy-Duty Meat & Nut Mincer Delivard Store P 0
6771 Kenwood VBP70 Bagless Vacuum Cleaner – 2000W, 3L Capacity, HEPA Filter, Multi-Cyclonic Technology, Red/Black Delivard Store P 0
6813 Kenwood HM430 Hand Blender – High Performance, Modern Design Delivard Store P 0
6716 Kenwood KHC29.Q0SI Prospero+ Stand Mixer – 1000W, 4.3 L Bowl, Compact Versatile Kitchen Machine Delivard Store P 0
6772 Kenwood VBP50 Bagless Vacuum Cleaner – 1800W, 2L Capacity, HEPA Filter, Multi-Cyclonic Technology, Black/Blue Delivard Store P 0
6669 Kenwood JEM01 Juice Extractor – 300W, 65mm Wide Feed Tube, 2-Speed, Anti-Drip, Dishwasher-Safe Delivard Store P 0
6671 Kenwood JEM51 Juice Extractor – 700W, 75mm Wide Feed Tube, 2-Speed, Anti-Drip, Dishwasher-Safe Delivard Store P 0
6812 Kenwood HMP30 Hand Blender – Compact Design, Efficient for Daily Use Delivard Store P 0
6761 Kenwood RCM71 2.8 L Rice Cooker with Steamer – 1000W, Keep Warm Function Delivard Store P 0
6672 Kenwood ZJM01 Cordless Electric Kettle – 1.7L, 2200W, Stainless Steel, Auto Shut-Off, Removable Mesh Filter Delivard Store P 0
6760 Kenwood PCM95 8 L Smart Electric Pressure Cooker – 16-in-1 Multicooker Delivard Store P 0
6767 Kenwood Drum Vacuum Cleaner VDM40 – 2000W, 20L Capacity, 8m Power Cord, Removable & Washable Filter, Multi-Surface Tools Delivard Store P 0
6815 Kenwood JE280 Citrus Juicer – 60W, 1 L Capacity, Dual-Direction Rotation, White Delivard Store P 0
6759 Kenwood PCM90 6L Smart Electric Pressure Cooker – 16-in-1 Multi Cooker Delivard Store P 0
6668 Kenwood Citrus Juicer JE290A Delivard Store P 0
6762 Kenwood SCM70 6.5 L Slow Cooker – 300 W, 3 Heat Settings, Removable Ceramic Pot Delivard Store P 0
6765 Kenwood TCP01 2-Slice Toaster – 640-760W, White Delivard Store P 0
6810 Kenwood HDP406 Triblade Hand Blender – 800W, 5 Accessories, Advanced Design Delivard Store P 0
6757 Kenwood MOM45 45 L Electric Oven / Toaster – 1800 W, Convection & Rotisserie Delivard Store P 0
6764 Kenwood SMP94 Sandwich Maker – 1300W, 2-in-1, White Delivard Store P 0
6811 Kenwood HBM60 Hand Blender – Balanced Power, Multi-Use Delivard Store P 0
6763 Kenwood SMM01 3-in-1 Sandwich & Waffle Maker & Grill – 750 W, Removable Plates Delivard Store P 0
6814 Kenwood HM330 Hand Blender – Multi-Purpose, Ideal for Home Use Delivard Store P 0