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 (
    3753, 4657, 4704, 5108, 5110, 5390, 5424, 
    5576, 6072, 6469, 6471, 8328, 8337, 
    8342, 9653, 11033, 5023, 5223, 2952, 
    3230
  ) 
  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.00176

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.91"
    },
    "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": 22,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (3753,4657,4704,5108,5110,5390,5424,5576,6072,6469,6471,8328,8337,8342,9653,11033,5023,5223,2952,3230))",
        "cost_info": {
          "read_cost": "14.47",
          "eval_cost": "0.44",
          "prefix_cost": "14.91",
          "data_read_per_join": "105"
        },
        "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
2952 59000.00000000
3230 15000.00000000
3753 263000.00000000
4657 200000.00000000
4704 574000.00000000
5023 13950.00000000
5108 35000.00000000
5110 35000.00000000
5223 18000.00000000
5390 98750.00000000
5424 100000.00000000
5576 20000.00000000
6072 151000.00000000
6469 71000.00000000
6471 85000.00000000
8328 78000.00000000
8337 8500.00000000
8342 170250.00000000
9653 635000.00000000
11033 299750.00000000