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 (
    5577, 2414, 2797, 2492, 2302, 50233, 
    47603, 48844, 38560, 6607, 1732, 2448, 
    2904, 4500, 1059, 3770, 16399, 21063, 
    3652, 970, 3669, 278, 4242, 2567, 4193, 
    4073, 6605, 2439, 31949, 46715, 4877, 
    47009
  ) 
  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.11573

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.585855484,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (5577,2414,2797,2492,2302,50233,47603,48844,38560,6607,1732,2448,2904,4500,1059,3770,16399,21063,3652,970,3669,278,4242,2567,4193,4073,6605,2439,31949,46715,4877,47009) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
278 299000.0000
970 175000.0000
1059 199000.0000
1732 565000.0000
2302 335000.0000
2414 79000.0000
2439 214500.0000
2448 302500.0000
2492 395000.0000
2567 400000.0000
2797 190000.0000
2904 525000.0000
3652 299000.0000
3669 350000.0000
3770 615000.0000
4073 300000.0000
4193 265000.0000
4242 45000.0000
4500 80000.0000
4877 250000.0000
5577 1080000.0000
6605 420000.0000
6607 480000.0000
16399 129000.0000
21063 330000.0000
31949 314000.0000
38560 484000.0000
46715 390000.0000
47009 785000.0000
47603 340000.0000
48844 540000.0000
50233 299000.0000