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 (
    47016, 36329, 455, 319, 48769, 388, 37304, 
    38143, 27357, 35249, 2932, 27358, 14822, 
    2461, 41441, 40824, 2505, 33177, 47018, 
    49306, 1897, 3764, 858, 3774, 27360, 
    857, 6577, 33214, 4238, 41442, 2926, 
    3884
  ) 
  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.15655

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 (47016,36329,455,319,48769,388,37304,38143,27357,35249,2932,27358,14822,2461,41441,40824,2505,33177,47018,49306,1897,3764,858,3774,27360,857,6577,33214,4238,41442,2926,3884) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
319 5329000.0000
388 50000.0000
455 3328000.0000
857 2280000.0000
858 3080000.0000
1897 80000.0000
2461 104500.0000
2505 110000.0000
2926 415000.0000
2932 335000.0000
3764 1230000.0000
3774 315000.0000
3884 520000.0000
4238 45000.0000
6577 165000.0000
14822 165000.0000
27357 480000.0000
27358 270000.0000
27360 430000.0000
33177 1690000.0000
33214 1690000.0000
35249 1395000.0000
36329 550000.0000
37304 248000.0000
38143 440000.0000
40824 375000.0000
41441 6399000.0000
41442 6399000.0000
47016 290000.0000
47018 290000.0000
48769 99000.0000
49306 480000.0000