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 (
    2259, 5265, 41134, 4793, 6102, 36494, 
    31904, 41102, 37289, 2248, 31646, 35735, 
    37943, 41445, 5761, 37301, 610, 31903, 
    47164, 32319, 43796, 32228, 33696, 
    37297, 5763, 26859, 36303, 2256, 47277, 
    32306, 41428, 4826
  ) 
  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.08788

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.080804825,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (2259,5265,41134,4793,6102,36494,31904,41102,37289,2248,31646,35735,37943,41445,5761,37301,610,31903,47164,32319,43796,32228,33696,37297,5763,26859,36303,2256,47277,32306,41428,4826) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
610 359000.0000
2248 6000000.0000
2256 21800000.0000
2259 21800000.0000
4793 450000.0000
4826 380000.0000
5265 38556.0000
5761 450000.0000
5763 588000.0000
6102 75000.0000
26859 250000.0000
31646 179000.0000
31903 95000.0000
31904 135000.0000
32228 577500.0000
32306 239000.0000
32319 239000.0000
33696 250000.0000
35735 99000.0000
36303 250000.0000
36494 1680000.0000
37289 275000.0000
37297 207000.0000
37301 207000.0000
37943 200000.0000
41102 499000.0000
41134 499000.0000
41428 1430000.0000
41445 9839000.0000
43796 172800.0000
47164 165000.0000
47277 368000.0000