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 (
    41341, 41340, 47922, 47921, 41343, 47896, 
    47924, 47923, 41339, 35829, 2085, 35792, 
    637, 31872, 35855, 33606, 47895, 47280, 
    48032, 48322, 48033, 48037, 48031, 
    48034, 48036, 48035, 47095, 48323, 
    47096, 48324, 47092, 47094
  ) 
  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.00324

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 (41341,41340,47922,47921,41343,47896,47924,47923,41339,35829,2085,35792,637,31872,35855,33606,47895,47280,48032,48322,48033,48037,48031,48034,48036,48035,47095,48323,47096,48324,47092,47094)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
637 450000.0000
2085 480000.0000
31872 300000.0000
33606 350000.0000
35792 200000.0000
35829 480000.0000
35855 210000.0000
41339 310000.0000
41340 295000.0000
41341 285000.0000
41343 310000.0000
47092 390000.0000
47094 440000.0000
47095 390000.0000
47096 220000.0000
47280 290000.0000
47895 319500.0000
47896 315000.0000
47921 285000.0000
47922 320000.0000
47923 295000.0000
47924 315000.0000
48031 319000.0000
48032 330000.0000
48033 339000.0000
48034 330000.0000
48035 330000.0000
48036 319000.0000
48037 330000.0000
48322 270000.0000
48323 250000.0000
48324 220000.0000