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 (
    58884, 62123, 29986, 60914, 29983, 60749, 
    29992, 29989, 60748, 63034, 62012, 
    60739, 60745, 61430, 62240, 63755, 
    60753, 64625, 62259, 64624, 61340, 
    61337, 64616, 60746
  ) 
  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.00176

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_product_prices",
      "access_type": "range",
      "possible_keys": ["usergroup", "product_id", "lower_limit", "usergroup_id"],
      "key": "product_id",
      "key_length": "9",
      "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
      "rowid_filter": {
        "range": {
          "key": "lower_limit",
          "used_key_parts": ["lower_limit", "product_id", "usergroup_id"]
        },
        "rows": 48,
        "selectivity_pct": 1.779095626
      },
      "rows": 48,
      "filtered": 100,
      "index_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (58884,62123,29986,60914,29983,60749,29992,29989,60748,63034,62012,60739,60745,61430,62240,63755,60753,64625,62259,64624,61340,61337,64616,60746) and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
29983 21.000000
29986 47.000000
29989 43.000000
29992 64.000000
58884 54.000000
60739 139.000000
60745 139.000000
60746 109.000000
60748 278.000000
60749 156.000000
60753 139.000000
60914 72.000000
61337 39.000000
61340 68.000000
61430 413.000000
62012 107.000000
62123 63.000000
62240 22.000000
62259 77.000000
63034 43.000000
63755 105.000000
64616 90.000000
64624 29.000000
64625 38.000000