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 (
    32313, 32324, 32404, 32327, 32307, 37416, 
    40914, 37313, 32315, 1415, 32314, 3513, 
    49304, 49324, 49300, 49330, 49337, 
    49302, 49281, 49354, 50056, 50222, 
    49840, 49823, 49944, 49831, 49940, 
    50054, 49841, 50053, 49827, 49939
  ) 
  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": 33,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (32313,32324,32404,32327,32307,37416,40914,37313,32315,1415,32314,3513,49304,49324,49300,49330,49337,49302,49281,49354,50056,50222,49840,49823,49944,49831,49940,50054,49841,50053,49827,49939)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1415 231000.0000
3513 329000.0000
32307 210000.0000
32313 139000.0000
32314 109000.0000
32315 169000.0000
32324 149000.0000
32327 159000.0000
32404 134000.0000
37313 189000.0000
37416 200000.0000
40914 60000.0000
49281 440000.0000
49300 700000.0000
49302 700000.0000
49304 550000.0000
49324 700000.0000
49330 700000.0000
49337 50000.0000
49354 290000.0000
49823 259000.0000
49827 349000.0000
49831 85000.0000
49840 115000.0000
49841 75000.0000
49939 199000.0000
49940 169000.0000
49944 89000.0000
50053 549000.0000
50054 65000.0000
50056 365000.0000
50222 2000000.0000