SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  MIN(
    IF(
      prices.percentage_discount = 0, 
      prices.price, 
      prices.price - (
        prices.price * prices.percentage_discount
      )/ 100
    )
  ) as price, 
  products.product_type, 
  products.parent_product_id, 
  products.rf_stop_update_price, 
  products.rf_stop_update_amount, 
  products.rf_stop_update_status 
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 (
    7230, 7231, 7232, 7233, 7234, 7235, 7236
  ) 
  AND companies.status IN ('A') 
  AND products.company_id IN (2, 8, 9, 10, 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.parent_product_id = 0 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  price desc, 
  products.product_id ASC 
LIMIT 
  192, 96

Query time 0.01737

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "29.08"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "rows_examined_per_scan": 7,
              "rows_produced_per_join": 0,
              "filtered": "4.00",
              "cost_info": {
                "read_cost": "3.14",
                "eval_cost": "0.03",
                "prefix_cost": "3.17",
                "data_read_per_join": "748"
              },
              "used_columns": [
                "category_id",
                "usergroup_ids",
                "status",
                "storefront_id"
              ],
              "attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7230,7231,7232,7233,7234,7235,7236)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')) and (`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          },
          {
            "table": {
              "table_name": "companies",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "rows_examined_per_scan": 5,
              "rows_produced_per_join": 0,
              "filtered": "33.33",
              "using_join_buffer": "hash join",
              "cost_info": {
                "read_cost": "0.59",
                "eval_cost": "0.05",
                "prefix_cost": "3.80",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "((`nuie_scalesta_net`.`companies`.`status` = 'A') and (`nuie_scalesta_net`.`companies`.`company_id` in (2,8,9,10,0)))"
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "nuie_scalesta_net.cscart_categories.category_id"
              ],
              "rows_examined_per_scan": 117,
              "rows_produced_per_join": 54,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.14",
                "eval_cost": "5.49",
                "prefix_cost": "9.43",
                "data_read_per_join": "878"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "age_verification",
                "status",
                "idx_parent_product_id",
                "my_supplier_id",
                "supplier_access_time",
                "products_rf_product_code_index",
                "products_rf_manufacturer_code_index"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "nuie_scalesta_net.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "8.23",
                "eval_cost": "0.27",
                "prefix_cost": "23.15",
                "data_read_per_join": "13K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id",
                "rf_stop_update_price",
                "rf_stop_update_amount",
                "rf_stop_update_status"
              ],
              "attached_condition": "((`nuie_scalesta_net`.`products`.`company_id` = `nuie_scalesta_net`.`companies`.`company_id`) and (`nuie_scalesta_net`.`products`.`parent_product_id` = 0) and ((`nuie_scalesta_net`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`products`.`usergroup_ids`))) and (`nuie_scalesta_net`.`products`.`status` = 'A') and (`nuie_scalesta_net`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "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": [
                "nuie_scalesta_net.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.41",
                "eval_cost": "0.27",
                "prefix_cost": "23.84",
                "data_read_per_join": "10K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "usergroup",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "nuie_scalesta_net.products_categories.product_id"
              ],
              "rows_examined_per_scan": 16,
              "rows_produced_per_join": 4,
              "filtered": "9.92",
              "cost_info": {
                "read_cost": "0.70",
                "eval_cost": "0.45",
                "prefix_cost": "29.08",
                "data_read_per_join": "108"
              },
              "used_columns": [
                "product_id",
                "price",
                "percentage_discount",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`nuie_scalesta_net`.`prices`.`lower_limit` = 1) and (`nuie_scalesta_net`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name price product_type parent_product_id rf_stop_update_price rf_stop_update_amount rf_stop_update_status
96064 RND-FL166WD Roxor 0.00000000 P 0 N N N
96065 RND-FL167W Roxor 0.00000000 P 0 N N N
96066 RND-FL167WD Roxor 0.00000000 P 0 N N N
96067 RND-FL17W Roxor 0.00000000 P 0 N N N
96068 RND-FL17WD Roxor 0.00000000 P 0 N N N
96069 RND-FL183W Roxor 0.00000000 P 0 N N N
96070 RND-FL183WD Roxor 0.00000000 P 0 N N N
96071 RND-FL184W Roxor 0.00000000 P 0 N N N
96072 RND-FL184WD Roxor 0.00000000 P 0 N N N
96073 RND-FL185W Roxor 0.00000000 P 0 N N N
96074 RND-FL185WD Roxor 0.00000000 P 0 N N N
96075 RND-FL186W Roxor 0.00000000 P 0 N N N
96076 RND-FL186WD Roxor 0.00000000 P 0 N N N
96077 RND-FL187W Roxor 0.00000000 P 0 N N N
96078 RND-FL187WD Roxor 0.00000000 P 0 N N N
96079 RND-FL19W Roxor 0.00000000 P 0 N N N
96080 RND-HNV10 Roxor 0.00000000 P 0 N N N
96081 RND-HNV10A Roxor 0.00000000 P 0 N N N
96082 RND-HNV10AD Roxor 0.00000000 P 0 N N N
96083 RND-HNV10D Roxor 0.00000000 P 0 N N N
96084 RND-HNV14 Roxor 0.00000000 P 0 N N N
96085 RND-HNV14A Roxor 0.00000000 P 0 N N N
96086 RND-HNV14AD Roxor 0.00000000 P 0 N N N
96087 RND-HNV14D Roxor 0.00000000 P 0 N N N
96088 RND-HNV17 Roxor 0.00000000 P 0 N N N
96089 RND-HNV17A Roxor 0.00000000 P 0 N N N
96090 RND-HNV17AD Roxor 0.00000000 P 0 N N N
96091 RND-HNV17D Roxor 0.00000000 P 0 N N N
96092 RND-HNV20 Roxor 0.00000000 P 0 N N N
96093 RND-HNV20A Roxor 0.00000000 P 0 N N N
96094 RND-HNV20AD Roxor 0.00000000 P 0 N N N
96095 RND-HNV20D Roxor 0.00000000 P 0 N N N
96096 RND-HNV24 Roxor 0.00000000 P 0 N N N
96097 RND-HNV24A Roxor 0.00000000 P 0 N N N
96098 RND-HNV24AD Roxor 0.00000000 P 0 N N N
96099 RND-HNV24D Roxor 0.00000000 P 0 N N N
96100 RND-HNV7 Roxor 0.00000000 P 0 N N N
96101 RND-HNV7A Roxor 0.00000000 P 0 N N N
96102 RND-HNV7AD Roxor 0.00000000 P 0 N N N
96103 RND-HNV7D Roxor 0.00000000 P 0 N N N
96104 RND-RNE1000 Roxor 0.00000000 P 0 N N N
96383 RND-CRP3080 Roxor 0.00000000 P 0 N N N
96384 RND-CRP3120 Roxor 0.00000000 P 0 N N N
96385 RND-CRP4080 Roxor 0.00000000 P 0 N N N
96386 RND-CRP4120 Roxor 0.00000000 P 0 N N N
96387 RND-CRP5095 Roxor 0.00000000 P 0 N N N
96388 RND-CRP5130 Roxor 0.00000000 P 0 N N N
96389 RND-DMR176 Roxor 0.00000000 P 0 N N N
96390 RND-DMR176A Roxor 0.00000000 P 0 N N N
96391 RND-DMR176W Roxor 0.00000000 P 0 N N N
96394 RND-FL164A Roxor 0.00000000 P 0 N N N
96395 RND-FL165A Roxor 0.00000000 P 0 N N N
96396 RND-FL166A Roxor 0.00000000 P 0 N N N
96397 RND-FL183A Roxor 0.00000000 P 0 N N N
96398 RND-FL185AD Roxor 0.00000000 P 0 N N N
96399 RND-FL187AD Roxor 0.00000000 P 0 N N N
96400 RND-FL19WD Roxor 0.00000000 P 0 N N N
96409 RND-LE418A Roxor 0.00000000 P 0 N N N
96410 RND-LE418W Roxor 0.00000000 P 0 N N N
96429 RND-PTN082K Roxor 0.00000000 P 0 N N N
96432 RND-RC8B Roxor 0.00000000 P 0 N N N
96433 RND-RC8W Roxor 0.00000000 P 0 N N N
96442 RND-SLN04703A Roxor 0.00000000 P 0 N N N
96443 RND-SLN04703W Roxor 0.00000000 P 0 N N N
96444 RND-SLN06004A Roxor 0.00000000 P 0 N N N
96445 RND-SLN06004W Roxor 0.00000000 P 0 N N N
96446 RND-SLN06006A Roxor 0.00000000 P 0 N N N
96447 RND-SLN06006W Roxor 0.00000000 P 0 N N N
96448 RND-SLN06008A Roxor 0.00000000 P 0 N N N
96449 RND-SLN06010A Roxor 0.00000000 P 0 N N N
96450 RND-SLN06010W Roxor 0.00000000 P 0 N N N
96451 RND-SLN06012A Roxor 0.00000000 P 0 N N N
96452 RND-SLN06012W Roxor 0.00000000 P 0 N N N
96453 RND-SLN06014A Roxor 0.00000000 P 0 N N N
96454 RND-SLN06014W Roxor 0.00000000 P 0 N N N
96455 RND-SLN07703A Roxor 0.00000000 P 0 N N N
96456 RND-SLN07703W Roxor 0.00000000 P 0 N N N
96457 RND-SLN11703A Roxor 0.00000000 P 0 N N N
96458 RND-SLN11703W Roxor 0.00000000 P 0 N N N
96459 RND-SLN11704A Roxor 0.00000000 P 0 N N N
96460 RND-SLN11704W Roxor 0.00000000 P 0 N N N
96461 RND-SLN11705A Roxor 0.00000000 P 0 N N N
96462 RND-SLN11705W Roxor 0.00000000 P 0 N N N
96463 RND-SLN14703A Roxor 0.00000000 P 0 N N N
96464 RND-SLN14703W Roxor 0.00000000 P 0 N N N
96465 RND-SLN14704A Roxor 0.00000000 P 0 N N N
96466 RND-SLN14704W Roxor 0.00000000 P 0 N N N
96467 RND-SLN14705A Roxor 0.00000000 P 0 N N N
96468 RND-SLN14705W Roxor 0.00000000 P 0 N N N
96469 RND-SLN17703A Roxor 0.00000000 P 0 N N N
96470 RND-SLN17703W Roxor 0.00000000 P 0 N N N
96471 RND-SLN17704A Roxor 0.00000000 P 0 N N N
96472 RND-SLN17704W Roxor 0.00000000 P 0 N N N
96473 RND-SLN17705A Roxor 0.00000000 P 0 N N N
96474 RND-SLN17705W Roxor 0.00000000 P 0 N N N
98600 HL326-P Roxor 0.00000000 P 0 N N N