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 (
    25180, 4071, 3004, 294, 4515, 5581, 47603, 
    48844, 6367, 4500, 4269, 4270, 6557, 
    3669, 1750, 1041, 35188, 25850, 4073, 
    46715, 35859, 2457, 3975, 2257, 2019, 
    4070, 4263, 46749, 47278, 39612, 18748, 
    788
  ) 
  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.15192

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.333330154,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (25180,4071,3004,294,4515,5581,47603,48844,6367,4500,4269,4270,6557,3669,1750,1041,35188,25850,4073,46715,35859,2457,3975,2257,2019,4070,4263,46749,47278,39612,18748,788) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
294 260000.0000
788 830000.0000
1041 450000.0000
1750 1020600.0000
2019 160000.0000
2257 21800000.0000
2457 82500.0000
3004 350000.0000
3669 350000.0000
3975 825000.0000
4070 300000.0000
4071 300000.0000
4073 300000.0000
4263 1650000.0000
4269 1400000.0000
4270 1400000.0000
4500 80000.0000
4515 50000.0000
5581 1080000.0000
6367 880000.0000
6557 1389000.0000
18748 898000.0000
25180 270000.0000
25850 6000000.0000
35188 735000.0000
35859 800000.0000
39612 180000.0000
46715 390000.0000
46749 480000.0000
47278 578000.0000
47603 340000.0000
48844 540000.0000