SELECT 
  products.product_id, 
  products.amount, 
  descr1.product as product, 
  companies.company as company_name, 
  products.kl_erp_inventory_id, 
  variation_group_products.group_id AS variation_group_id, 
  products.product_type, 
  products.parent_product_id, 
  products.master_product_offers_count, 
  products.master_product_id, 
  products.company_id, 
  products.kl_enable_qc, 
  products.kl_qc_amount 
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_companies AS companies ON companies.company_id = products.company_id 
  INNER JOIN cscart_products_categories as products_categories USE INDEX (
    idx_products_categories_composite
  ) ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_categories.storefront_id IN (0, 1) 
  INNER JOIN cscart_product_variation_group_products AS variation_group_products ON variation_group_products.product_id = products.product_id 
WHERE 
  1 
  AND (
    companies.status IN ('A') 
    OR products.company_id = 0
  ) 
  AND products.company_id IN (13, 0) 
  AND (
    products.amount > 0 
    OR products.tracking = 'D'
  ) 
  AND products.status IN ('A') 
  AND variation_group_products.group_id IN (
    967, 968, 966, 970, 963, 969, 962, 1089
  ) 
  AND products.master_product_status IN ('A') 
  AND products.master_product_id = 0 
  AND products.company_id > 0 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.00235

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "53.77"
    },
    "ordering_operation": {
      "using_filesort": false,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "variation_group_products",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY",
                "idx_group_id"
              ],
              "key": "idx_group_id",
              "used_key_parts": [
                "group_id"
              ],
              "key_length": "3",
              "rows_examined_per_scan": 50,
              "rows_produced_per_join": 50,
              "filtered": "100.00",
              "index_condition": "(`cscart_db`.`variation_group_products`.`group_id` in (967,968,966,970,963,969,962,1089))",
              "cost_info": {
                "read_cost": "19.51",
                "eval_cost": "5.00",
                "prefix_cost": "24.51",
                "data_read_per_join": "800"
              },
              "used_columns": [
                "product_id",
                "group_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "age_verification",
                "status",
                "idx_parent_product_id",
                "idx_master_product_id",
                "youtube_link",
                "idx_products_parent_lookup",
                "idx_products_status_company",
                "idx_products_master_status",
                "idx_products_inventory",
                "idx_products_status_company_master",
                "idx_products_main_query",
                "idx_products_query_opt",
                "idx_products_composite_query",
                "idx_kl_qc_enabled"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "cscart_db.variation_group_products.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "19.59",
                "eval_cost": "0.25",
                "prefix_cost": "49.10",
                "data_read_per_join": "13K"
              },
              "used_columns": [
                "product_id",
                "kl_erp_inventory_id",
                "product_type",
                "status",
                "company_id",
                "amount",
                "kl_enable_qc",
                "kl_qc_amount",
                "tracking",
                "parent_product_id",
                "master_product_id",
                "master_product_status",
                "master_product_offers_count"
              ],
              "attached_condition": "((`cscart_db`.`products`.`master_product_id` = 0) and (`cscart_db`.`products`.`company_id` in (13,0)) and ((`cscart_db`.`products`.`amount` > 0) or (`cscart_db`.`products`.`tracking` = 'D')) and (`cscart_db`.`products`.`status` = 'A') and (`cscart_db`.`products`.`master_product_status` = 'A') and (`cscart_db`.`products`.`company_id` > 0))"
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "idx_products_categories_composite"
              ],
              "key": "idx_products_categories_composite",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "cscart_db.variation_group_products.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.79",
                "eval_cost": "0.29",
                "prefix_cost": "50.17",
                "data_read_per_join": "46"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "p_category_id",
                "idx_categories_storefront_status",
                "idx_categories_usergroup_status",
                "idx_categories_status_id_path"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "cscart_db.products_categories.category_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "81.96",
              "cost_info": {
                "read_cost": "0.72",
                "eval_cost": "0.24",
                "prefix_cost": "51.18",
                "data_read_per_join": "6K"
              },
              "used_columns": [
                "category_id",
                "status",
                "storefront_id"
              ],
              "attached_condition": "((`cscart_db`.`cscart_categories`.`status` in ('A','H')) and (`cscart_db`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          },
          {
            "table": {
              "table_name": "descr1",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "product_id",
                "idx_product_desc_lang",
                "idx_product_name_search",
                "idx_product_desc_sort"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "cscart_db.variation_group_products.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "1.60",
                "eval_cost": "0.24",
                "prefix_cost": "53.03",
                "data_read_per_join": "10K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          },
          {
            "table": {
              "table_name": "companies",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "ref": [
                "cscart_db.products.company_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.51",
                "eval_cost": "0.24",
                "prefix_cost": "53.77",
                "data_read_per_join": "16K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "<if>(found_match(companies), ((`cscart_db`.`companies`.`status` = 'A') or (`cscart_db`.`products`.`company_id` = 0)), true)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id amount product company_name kl_erp_inventory_id variation_group_id product_type parent_product_id master_product_offers_count master_product_id company_id kl_enable_qc kl_qc_amount
69485 3 Ginger Sugar Melting Balm 01 Fig Beige 6gm Roadskye Tradecom Pvt. Ltd. 962 P 0 0 0 13 0 0
69486 29 Ginger Sugar Melting Balm 02 Soft Mauve 6gm Roadskye Tradecom Pvt. Ltd. 962 P 0 0 0 13 0 0
68902 5 Dear Darling Oil Tint 01 Real Cherry Roadskye Tradecom Pvt. Ltd. 963 P 0 0 0 13 0 0
68903 32 Dear Darling Oil Tint 02 Plum Berry Roadskye Tradecom Pvt. Ltd. 963 P 0 0 0 13 0 0
68904 1 Dear Darling Oil Tint 03 Neon Pink Roadskye Tradecom Pvt. Ltd. 963 P 0 0 0 13 0 0
68906 3 Dear Darling Oil Tint 05 Red oil Roadskye Tradecom Pvt. Ltd. 963 P 0 0 0 13 0 0
68907 11 Dear Darling Oil Tint 06 Pink oil Roadskye Tradecom Pvt. Ltd. 963 P 0 0 0 13 0 0
68936 8 Fixing Tint Mini 05 Midnight Mauve Roadskye Tradecom Pvt. Ltd. 966 P 0 0 0 13 0 0
68938 23 Fixing Tint Mini 07 Cranberry Plum Roadskye Tradecom Pvt. Ltd. 966 P 0 0 0 13 0 0
69458 29 Color Lasting Glow Stick 01 Rose Berry 8gm Roadskye Tradecom Pvt. Ltd. 967 P 0 0 0 13 0 0
69463 3 Color Lasting Glow Stick 06 Twilight Mauve 8gm Roadskye Tradecom Pvt. Ltd. 967 P 0 0 0 13 0 0
69461 13 Color Lasting Glow Stick 04 Pink Wish 8gm Roadskye Tradecom Pvt. Ltd. 967 P 0 0 0 13 0 0
69459 1 Color Lasting Glow Stick 02 Forever Ruby 8gm Roadskye Tradecom Pvt. Ltd. 967 P 0 0 0 13 0 0
69460 3 Color Lasting Glow Stick 03 Jealous Red 8gm Roadskye Tradecom Pvt. Ltd. 967 P 0 0 0 13 0 0
68908 48 Dear Darling Water Tint 01 Strawberry Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68911 34 Dear Darling Water Tint 04 Red Grapefruit Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68913 39 Dear Darling Water Tint 06 Pomegranate Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68914 24 Dear Darling Water Tint 07 Prune Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68912 9 Dear Darling Water Tint 05 Grape Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68910 4 Dear Darling Water Tint 03 Orange Ade Roadskye Tradecom Pvt. Ltd. 968 P 0 0 0 13 0 0
68888 5 Dear Darling Water Gel Tint 01 Tangerine red Roadskye Tradecom Pvt. Ltd. 969 P 0 0 0 13 0 0
68889 50 Dear Darling Water Gel Tint 02 Cherry red Roadskye Tradecom Pvt. Ltd. 969 P 0 0 0 13 0 0
68893 10 Dear Darling Water Gel Tint 06 Sweet potato red Roadskye Tradecom Pvt. Ltd. 969 P 0 0 0 13 0 0
68890 33 Dear Darling Water Gel Tint 03 Real red Roadskye Tradecom Pvt. Ltd. 969 P 0 0 0 13 0 0
68894 9 Dear Darling Water Gel Tint 07 Red bean pink Roadskye Tradecom Pvt. Ltd. 969 P 0 0 0 13 0 0
68921 4 Fixing Tint 01 Analog Rose Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68924 12 Fixing Tint 06 Soft Walnut Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68935 1 Fixing Tint 20 Pink Fig Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68929 20 Fixing Tint 12 Salmon Brick Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68925 13 Fixing Tint 07 Cranberry Plum Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68931 19 Fixing Tint 15 Woody pink Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68923 4 Fixing Tint 05 Midnight Mauve Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68926 2 Fixing Tint 08 Dusty Beige Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68922 2 Fixing Tint 03 Mellow Peach Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68932 6 Fixing Tint 16 baked pecan Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68927 4 Fixing Tint 10 Smoky Cherry Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68928 7 Fixing Tint 11 Rose Blending Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
68934 4 Fixing Tint 19 Coral Breeze Roadskye Tradecom Pvt. Ltd. 970 P 0 0 0 13 0 0
69380 45 Reedle Shot Lip Plumper, 0.15 oz (Beginner) Roadskye Tradecom Pvt. Ltd. 1089 P 0 0 0 13 0 0