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 
  96, 96

Query time 0.00635

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
95171 RND-NV2315A Roxor 0.00000000 P 0 N N N
95172 RND-NV2315AD Roxor 0.00000000 P 0 N N N
95173 RND-NV2315W Roxor 0.00000000 P 0 N N N
95174 RND-NV2315WD Roxor 0.00000000 P 0 N N N
95175 RND-NV2318A Roxor 0.00000000 P 0 N N N
95176 RND-NV2318AD Roxor 0.00000000 P 0 N N N
95177 RND-NV2318W Roxor 0.00000000 P 0 N N N
95178 RND-NV2318WD Roxor 0.00000000 P 0 N N N
95179 RND-NV2915A Roxor 0.00000000 P 0 N N N
95180 RND-NV2915AD Roxor 0.00000000 P 0 N N N
95181 RND-NV2915W Roxor 0.00000000 P 0 N N N
95182 RND-NV2915WD Roxor 0.00000000 P 0 N N N
95183 RND-NV2918A Roxor 0.00000000 P 0 N N N
95184 RND-NV2918AD Roxor 0.00000000 P 0 N N N
95185 RND-NV2918W Roxor 0.00000000 P 0 N N N
95186 RND-NV2918WD Roxor 0.00000000 P 0 N N N
95187 RND-NV3515A Roxor 0.00000000 P 0 N N N
95188 RND-NV3515AD Roxor 0.00000000 P 0 N N N
95189 RND-NV3515W Roxor 0.00000000 P 0 N N N
95190 RND-NV3515WD Roxor 0.00000000 P 0 N N N
95191 RND-NV3518A Roxor 0.00000000 P 0 N N N
95192 RND-NV3518AD Roxor 0.00000000 P 0 N N N
95193 RND-NV3518W Roxor 0.00000000 P 0 N N N
95194 RND-NV3518WD Roxor 0.00000000 P 0 N N N
95195 RND-NV4115A Roxor 0.00000000 P 0 N N N
95196 RND-NV4115AD Roxor 0.00000000 P 0 N N N
95197 RND-NV4115W Roxor 0.00000000 P 0 N N N
95198 RND-NV4115WD Roxor 0.00000000 P 0 N N N
95199 RND-NV4118A Roxor 0.00000000 P 0 N N N
95200 RND-NV4118AD Roxor 0.00000000 P 0 N N N
95201 RND-NV4118W Roxor 0.00000000 P 0 N N N
95202 RND-NV4118WD Roxor 0.00000000 P 0 N N N
95203 RND-NV4715A Roxor 0.00000000 P 0 N N N
95204 RND-NV4715AD Roxor 0.00000000 P 0 N N N
95205 RND-NV4715W Roxor 0.00000000 P 0 N N N
95206 RND-NV4715WD Roxor 0.00000000 P 0 N N N
95207 RND-NV4718AD Roxor 0.00000000 P 0 N N N
95208 RND-NV4718W Roxor 0.00000000 P 0 N N N
95209 RND-NV4718WD Roxor 0.00000000 P 0 N N N
95210 RND-NV5315A Roxor 0.00000000 P 0 N N N
95211 RND-NV5315AD Roxor 0.00000000 P 0 N N N
95212 RND-NV5315WD Roxor 0.00000000 P 0 N N N
95213 RND-NV5318A Roxor 0.00000000 P 0 N N N
95214 RND-NV5318AD Roxor 0.00000000 P 0 N N N
95215 RND-NV5318W Roxor 0.00000000 P 0 N N N
95216 RND-NV5318WD Roxor 0.00000000 P 0 N N N
95217 RND-NVH210DW Roxor 0.00000000 P 0 N N N
95218 RND-NVH212DW Roxor 0.00000000 P 0 N N N
95219 RND-NVH212SW Roxor 0.00000000 P 0 N N N
95220 RND-NVH214DA Roxor 0.00000000 P 0 N N N
95221 RND-NVH214DW Roxor 0.00000000 P 0 N N N
95222 RND-NVH214SW Roxor 0.00000000 P 0 N N N
95223 RND-NVH506DW Roxor 0.00000000 P 0 N N N
95224 RND-NVH506SW Roxor 0.00000000 P 0 N N N
95225 RND-NVH508DA Roxor 0.00000000 P 0 N N N
95226 RND-NVH508DW Roxor 0.00000000 P 0 N N N
95227 RND-NVH508SW Roxor 0.00000000 P 0 N N N
95228 RND-NVH510DA Roxor 0.00000000 P 0 N N N
95229 RND-NVH510DW Roxor 0.00000000 P 0 N N N
95230 RND-NVH510SW Roxor 0.00000000 P 0 N N N
95231 RND-NVH512DW Roxor 0.00000000 P 0 N N N
95232 RND-NVH512SW Roxor 0.00000000 P 0 N N N
95233 RND-NVH514DW Roxor 0.00000000 P 0 N N N
95234 RND-NVH514SW Roxor 0.00000000 P 0 N N N
95235 RND-RNE1000D Roxor 0.00000000 P 0 N N N
95236 RND-RNE1200 Roxor 0.00000000 P 0 N N N
95237 RND-RNE1200D Roxor 0.00000000 P 0 N N N
95238 RND-RNE1400 Roxor 0.00000000 P 0 N N N
95239 RND-RNE1400D Roxor 0.00000000 P 0 N N N
95240 RND-RNE400 Roxor 0.00000000 P 0 N N N
95241 RND-RNE400D Roxor 0.00000000 P 0 N N N
95242 RND-RNE600 Roxor 0.00000000 P 0 N N N
95243 RND-RNE600D Roxor 0.00000000 P 0 N N N
95244 RND-RNE800 Roxor 0.00000000 P 0 N N N
95245 RND-RNE800D Roxor 0.00000000 P 0 N N N
95970 RND-2C154 Roxor 0.00000000 P 0 N N N
95971 RND-2C156 Roxor 0.00000000 P 0 N N N
95972 RND-2C158 Roxor 0.00000000 P 0 N N N
95973 RND-2C184 Roxor 0.00000000 P 0 N N N
95974 RND-2C186 Roxor 0.00000000 P 0 N N N
95975 RND-2C188 Roxor 0.00000000 P 0 N N N
95976 RND-2C613 Roxor 0.00000000 P 0 N N N
96050 RND-FL06W Roxor 0.00000000 P 0 N N N
96051 RND-FL06WD Roxor 0.00000000 P 0 N N N
96052 RND-FL08W Roxor 0.00000000 P 0 N N N
96053 RND-FL08WD Roxor 0.00000000 P 0 N N N
96054 RND-FL11W Roxor 0.00000000 P 0 N N N
96055 RND-FL11WD Roxor 0.00000000 P 0 N N N
96056 RND-FL14W Roxor 0.00000000 P 0 N N N
96057 RND-FL14WD Roxor 0.00000000 P 0 N N N
96058 RND-FL163W Roxor 0.00000000 P 0 N N N
96059 RND-FL163WD Roxor 0.00000000 P 0 N N N
96060 RND-FL164W Roxor 0.00000000 P 0 N N N
96061 RND-FL164WD Roxor 0.00000000 P 0 N N N
96062 RND-FL165WD Roxor 0.00000000 P 0 N N N
96063 RND-FL166W Roxor 0.00000000 P 0 N N N