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, 
    1737, 2530, 2529, 1572, 1523, 2552, 
    2524, 2545, 1730, 1577, 2541, 2517, 
    2542, 1733, 1734
  ) 
  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.00049

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "30.26"
    },
    "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": 45,
        "rows_produced_per_join": 8,
        "filtered": "19.97",
        "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,1737,2530,2529,1572,1523,2552,2524,2545,1730,1577,2541,2517,2542,1733,1734))",
        "cost_info": {
          "read_cost": "29.36",
          "eval_cost": "0.90",
          "prefix_cost": "30.26",
          "data_read_per_join": "215"
        },
        "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
1523 80.00000000
1572 80.00000000
1577 42.00000000
1730 39.96000000
1731 37.80000000
1732 36.72000000
1733 35.64000000
1734 36.72000000
1735 29.16000000
1736 28.08000000
1737 32.40000000
2517 162.36000000
2518 162.76000000
2519 194.40000000
2520 161.57000000
2521 161.57000000
2522 135.30000000
2523 202.95000000
2524 139.00000000
2525 356.40000000
2526 169.13000000
2527 60.89000000
2528 166.32000000
2529 186.00000000
2530 79.95000000
2531 123.00000000
2541 464.40000000
2542 2322.00000000
2543 813.78000000
2544 972.00000000
2545 729.00000000
2546 807.84000000
2547 807.84000000
2548 1522.12000000
2549 831.60000000
2550 1782.00000000
2551 135.30000000
2552 405.90000000
2553 60.89000000
2554 304.45000000