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 (
    3470, 1710, 5568, 2237, 6533, 3469, 46739, 
    46734, 16601, 1781, 6466, 2138, 35734, 
    48843, 1755, 16612, 1754, 2131, 6468, 
    6529, 2130, 40455, 27350, 6534, 2137, 
    6535, 5815, 21600, 2129, 1712, 1750, 
    48844
  ) 
  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.00210

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 (3470,1710,5568,2237,6533,3469,46739,46734,16601,1781,6466,2138,35734,48843,1755,16612,1754,2131,6468,6529,2130,40455,27350,6534,2137,6535,5815,21600,2129,1712,1750,48844)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1710 124440.0000
1712 129200.0000
1750 1020600.0000
1754 484920.0000
1755 966000.0000
1781 999000.0000
2129 100000.0000
2130 140000.0000
2131 55000.0000
2137 75000.0000
2138 75000.0000
2237 150000.0000
3469 490000.0000
3470 390000.0000
5568 60000.0000
5815 106000.0000
6466 150000.0000
6468 1500000.0000
6529 280000.0000
6533 140000.0000
6534 125000.0000
6535 150000.0000
16601 250000.0000
16612 250000.0000
21600 330000.0000
27350 385000.0000
35734 1100000.0000
40455 590000.0000
46734 190000.0000
46739 230000.0000
48843 540000.0000
48844 540000.0000