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 (
    50216, 50194, 41341, 41340, 47922, 47921, 
    41343, 47896, 47924, 47923, 31632, 
    31634, 31631, 41339, 2303, 31627, 31965, 
    26880, 26895, 26894, 26876, 26885, 
    26881, 26884, 26883, 31629, 41397, 
    1972, 31630, 3764, 36746, 2085
  ) 
  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.00693

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (50216,50194,41341,41340,47922,47921,41343,47896,47924,47923,31632,31634,31631,41339,2303,31627,31965,26880,26895,26894,26876,26885,26881,26884,26883,31629,41397,1972,31630,3764,36746,2085)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1972 405000.0000
2085 480000.0000
2303 640000.0000
3764 1230000.0000
26876 170000.0000
26880 54000.0000
26881 103000.0000
26883 79000.0000
26884 90000.0000
26885 63000.0000
26894 88000.0000
26895 52000.0000
31627 48000.0000
31629 48000.0000
31630 42000.0000
31631 49000.0000
31632 55000.0000
31634 135000.0000
31965 420000.0000
36746 240000.0000
41339 310000.0000
41340 295000.0000
41341 285000.0000
41343 310000.0000
41397 690000.0000
47896 315000.0000
47921 285000.0000
47922 320000.0000
47923 295000.0000
47924 315000.0000
50194 180000.0000
50216 410000.0000