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 (
    41590, 41621, 34674, 48235, 6198, 15452, 
    15322, 6274, 34668, 30368, 47828, 277, 
    48503, 34667, 2859, 119, 27356, 31911, 
    118, 36272, 1323, 34669, 6355, 27262, 
    47824, 34666, 31910, 5992, 1765, 47600, 
    34675, 34670
  ) 
  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.00410

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 (41590,41621,34674,48235,6198,15452,15322,6274,34668,30368,47828,277,48503,34667,2859,119,27356,31911,118,36272,1323,34669,6355,27262,47824,34666,31910,5992,1765,47600,34675,34670)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
118 120000.0000
119 250000.0000
277 100000.0000
1323 150000.0000
1765 950000.0000
2859 550000.0000
5992 82000.0000
6198 239000.0000
6274 110000.0000
6355 250000.0000
15322 225000.0000
15452 30000.0000
27262 220000.0000
27356 600000.0000
30368 220000.0000
31910 100000.0000
31911 150000.0000
34666 465000.0000
34667 455000.0000
34668 115000.0000
34669 101000.0000
34670 39000.0000
34674 65000.0000
34675 45000.0000
36272 352000.0000
41590 180000.0000
41621 125000.0000
47600 310000.0000
47824 495000.0000
47828 295000.0000
48235 290000.0000
48503 920000.0000