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 (
    52, 47599, 41399, 4705, 1836, 45503, 
    4515, 47603, 31872, 23402, 5813, 23401, 
    1059, 4715, 22534, 4346, 1835, 5986, 
    34553, 48772, 19270, 2150, 1784, 4116, 
    41334, 6545, 3528, 1408, 29698, 31626, 
    1058, 19289
  ) 
  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.01990

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 (52,47599,41399,4705,1836,45503,4515,47603,31872,23402,5813,23401,1059,4715,22534,4346,1835,5986,34553,48772,19270,2150,1784,4116,41334,6545,3528,1408,29698,31626,1058,19289)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
52 175000.0000
1058 63000.0000
1059 199000.0000
1408 305000.0000
1784 999000.0000
1835 220000.0000
1836 160000.0000
2150 200000.0000
3528 90090.0000
4116 93500.0000
4346 165000.0000
4515 50000.0000
4705 300000.0000
4715 300000.0000
5813 90000.0000
5986 51000.0000
6545 1345000.0000
19270 32900.0000
19289 129000.0000
22534 450000.0000
23401 230000.0000
23402 215000.0000
29698 45000.0000
31626 110000.0000
31872 300000.0000
34553 2503000.0000
41334 198000.0000
41399 480000.0000
45503 110000.0000
47599 605000.0000
47603 340000.0000
48772 59000.0000