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 (
    47592, 5478, 6371, 47652, 1751, 461, 
    5960, 5957, 34548, 5999, 5961, 4363, 
    5956, 4361, 5451, 46696, 5479, 4366, 
    4360, 1752, 5485, 47610, 41410, 41010, 
    5963, 41411, 5447, 4365, 47605, 48279, 
    47606, 5469
  ) 
  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.00148

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 (47592,5478,6371,47652,1751,461,5960,5957,34548,5999,5961,4363,5956,4361,5451,46696,5479,4366,4360,1752,5485,47610,41410,41010,5963,41411,5447,4365,47605,48279,47606,5469)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
461 4506000.0000
1751 1020600.0000
1752 961200.0000
4360 810000.0000
4361 850000.0000
4363 1480000.0000
4365 1630000.0000
4366 980000.0000
5447 3690000.0000
5451 4650000.0000
5469 1390000.0000
5478 960000.0000
5479 960000.0000
5485 770000.0000
5956 1200000.0000
5957 1200000.0000
5960 3900000.0000
5961 3900000.0000
5963 3500000.0000
5999 620000.0000
6371 1090000.0000
34548 399000.0000
41010 2800000.0000
41410 1380000.0000
41411 1100000.0000
46696 385000.0000
47592 484000.0000
47605 340000.0000
47606 1254000.0000
47610 484000.0000
47652 645000.0000
48279 325000.0000