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, 64617, 60736, 
    64615, 62252, 61336, 62253, 64614, 
    60731, 60726, 60750, 60734, 61388, 
    64622, 60741, 64623, 64626, 60747, 
    62254, 60730, 62260, 60740, 61387, 
    60742, 61171
  ) 
  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.00170

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": 96,
        "selectivity_pct": 3.558191253
      },
      "rows": 96,
      "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,64617,60736,64615,62252,61336,62253,64614,60731,60726,60750,60734,61388,64622,60741,64623,64626,60747,62254,60730,62260,60740,61387,60742,61171) 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
60726 124.000000
60730 216.000000
60731 102.000000
60734 171.000000
60736 156.000000
60739 139.000000
60740 139.000000
60741 139.000000
60742 124.000000
60745 139.000000
60746 109.000000
60747 109.000000
60748 278.000000
60749 156.000000
60750 171.000000
60753 139.000000
60914 72.000000
61171 156.000000
61336 90.000000
61337 39.000000
61340 68.000000
61387 373.000000
61388 267.000000
61430 413.000000
62012 107.000000
62123 63.000000
62240 22.000000
62252 54.000000
62253 61.000000
62254 61.000000
62259 77.000000
62260 83.000000
63034 43.000000
63755 105.000000
64614 93.000000
64615 145.000000
64616 90.000000
64617 90.000000
64622 90.000000
64623 90.000000
64624 29.000000
64625 38.000000
64626 13.000000