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 (
    6439, 6403, 3614, 4287, 3835, 43648, 
    40928, 6148, 29709, 46592, 45569, 3626, 
    5725, 3839, 43434, 44488, 5731, 47255, 
    48122, 4285, 48068, 36764, 3850, 4454, 
    2447, 38626, 48791, 4295, 45570, 4908, 
    4297, 48790
  ) 
  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.13902

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.85416317,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (6439,6403,3614,4287,3835,43648,40928,6148,29709,46592,45569,3626,5725,3839,43434,44488,5731,47255,48122,4285,48068,36764,3850,4454,2447,38626,48791,4295,45570,4908,4297,48790) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
2447 302500.0000
3614 100000.0000
3626 30000.0000
3835 184800.0000
3839 167200.0000
3850 128700.0000
4285 300000.0000
4287 200000.0000
4295 250000.0000
4297 200000.0000
4454 99000.0000
4908 950000.0000
5725 80000.0000
5731 420000.0000
6148 399000.0000
6403 220000.0000
6439 100000.0000
29709 45000.0000
36764 85000.0000
38626 498000.0000
40928 350000.0000
43434 100000.0000
43648 35000.0000
44488 250000.0000
45569 260000.0000
45570 295000.0000
46592 80000.0000
47255 950000.0000
48068 95000.0000
48122 295000.0000
48790 95000.0000
48791 95000.0000