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 (
    1893, 47593, 47631, 33312, 65, 43825, 
    47656, 48998, 2292, 47654, 47984, 40761, 
    3471, 47660, 1781, 1755, 3620, 35254, 
    47598, 47599, 6367, 35188, 35859, 1784, 
    40760, 5998, 2233, 4465, 4362, 1756, 
    28157, 6543
  ) 
  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.00212

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 (1893,47593,47631,33312,65,43825,47656,48998,2292,47654,47984,40761,3471,47660,1781,1755,3620,35254,47598,47599,6367,35188,35859,1784,40760,5998,2233,4465,4362,1756,28157,6543)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
65 800000.0000
1755 966000.0000
1756 538920.0000
1781 999000.0000
1784 999000.0000
1893 878000.0000
2233 899000.0000
2292 850000.0000
3471 999000.0000
3620 550000.0000
4362 845000.0000
4465 800000.0000
5998 620000.0000
6367 880000.0000
6543 825000.0000
28157 900000.0000
33312 535000.0000
35188 735000.0000
35254 995000.0000
35859 800000.0000
40760 579000.0000
40761 775000.0000
43825 577000.0000
47593 759000.0000
47598 605000.0000
47599 605000.0000
47631 583000.0000
47654 500000.0000
47656 515000.0000
47660 880000.0000
47984 600000.0000
48998 595000.0000