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 (
    2527, 2548, 2553, 2554, 1735, 2521, 2547, 
    2520, 2546, 2526, 2528, 2549, 2519, 
    2544, 2522, 2518, 2543, 1736, 2551, 
    2523, 2525, 2550, 1731, 1732, 2531
  ) 
  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.00032

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.51"
    },
    "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": 25,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`cscartdevel`.`cscart_product_prices`.`product_id` in (2527,2548,2553,2554,1735,2521,2547,2520,2546,2526,2528,2549,2519,2544,2522,2518,2543,1736,2551,2523,2525,2550,1731,1732,2531))",
        "cost_info": {
          "read_cost": "17.01",
          "eval_cost": "0.50",
          "prefix_cost": "17.51",
          "data_read_per_join": "119"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`cscartdevel`.`cscart_product_prices`.`lower_limit` = 1) and (`cscartdevel`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
1731 37.80000000
1732 36.72000000
1735 29.16000000
1736 28.08000000
2518 162.76000000
2519 194.40000000
2520 161.57000000
2521 161.57000000
2522 135.30000000
2523 202.95000000
2525 356.40000000
2526 169.13000000
2527 60.89000000
2528 166.32000000
2531 123.00000000
2543 813.78000000
2544 972.00000000
2546 807.84000000
2547 807.84000000
2548 1522.12000000
2549 831.60000000
2550 1782.00000000
2551 135.30000000
2553 60.89000000
2554 304.45000000