SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    7531, 7504, 8342, 8341, 8343, 8344, 8339, 
    8340, 7503, 7539, 7500, 7506, 7669, 
    7530, 7494, 7502, 7501, 8649, 7497, 
    8082, 7932, 7933, 8095, 9387, 7934, 
    7935, 8346, 8349, 8352, 8650, 8348, 
    8350, 8353, 8355, 8347, 8648
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00143

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "25.21"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 36,
        "rows_produced_per_join": 7,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7531,7504,8342,8341,8343,8344,8339,8340,7503,7539,7500,7506,7669,7530,7494,7502,7501,8649,7497,8082,7932,7933,8095,9387,7934,7935,8346,8349,8352,8650,8348,8350,8353,8355,8347,8648))",
        "cost_info": {
          "read_cost": "24.49",
          "eval_cost": "0.72",
          "prefix_cost": "25.21",
          "data_read_per_join": "172"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
7494 421750.00000000
7497 454500.00000000
7500 269000.00000000
7501 239750.00000000
7502 239750.00000000
7503 221000.00000000
7504 239750.00000000
7506 330000.00000000
7530 122000.00000000
7531 350750.00000000
7539 441250.00000000
7669 191250.00000000
7932 201000.00000000
7933 192250.00000000
7934 231750.00000000
7935 231750.00000000
8082 106750.00000000
8095 153000.00000000
8339 367250.00000000
8340 336500.00000000
8341 398000.00000000
8342 170250.00000000
8343 155750.00000000
8344 137500.00000000
8346 350750.00000000
8347 170250.00000000
8348 328750.00000000
8349 535250.00000000
8350 244000.00000000
8352 354000.00000000
8353 225000.00000000
8355 301750.00000000
8648 235500.00000000
8649 226750.00000000
8650 1182000.00000000
9387 112000.00000000