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 (
    1042, 523, 3664, 3881, 19386, 1534, 41231, 
    5833, 5424, 133, 23162, 4706, 33131, 
    4717, 5835, 2910, 5421, 33133, 3469, 
    33134, 3786, 297, 46739, 27363, 16601, 
    1122, 3885, 5836, 3662, 38559, 48179, 
    306
  ) 
  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.00508

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 (1042,523,3664,3881,19386,1534,41231,5833,5424,133,23162,4706,33131,4717,5835,2910,5421,33133,3469,33134,3786,297,46739,27363,16601,1122,3885,5836,3662,38559,48179,306)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
133 250000.0000
297 300000.0000
306 400000.0000
523 320000.0000
1042 400000.0000
1122 239000.0000
1534 235000.0000
2910 485000.0000
3469 490000.0000
3662 350000.0000
3664 340000.0000
3786 435000.0000
3881 300000.0000
3885 330000.0000
4706 300000.0000
4717 300000.0000
5421 465000.0000
5424 485000.0000
5833 211680.0000
5835 254880.0000
5836 216000.0000
16601 250000.0000
19386 365000.0000
23162 449000.0000
27363 380000.0000
33131 490000.0000
33133 490000.0000
33134 490000.0000
38559 484000.0000
41231 320000.0000
46739 230000.0000
48179 220000.0000