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 (
    64916, 62863, 64359, 64374, 64375, 64470, 
    62654, 62657, 64961, 62648, 64930, 
    62653, 64990, 62655, 64986, 62656, 
    64978, 64972, 64926, 64968, 64934, 
    65074, 65030, 64982
  ) 
  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.00101

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 (64916,62863,64359,64374,64375,64470,62654,62657,64961,62648,64930,62653,64990,62655,64986,62656,64978,64972,64926,64968,64934,65074,65030,64982) and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
62648 495.000000
62653 560.000000
62654 545.000000
62655 625.000000
62656 555.000000
62657 615.000000
62863 545.000000
64359 510.000000
64374 425.000000
64375 425.000000
64470 839.000000
64916 445.000000
64926 455.000000
64930 445.000000
64934 435.000000
64961 495.000000
64968 485.000000
64972 455.000000
64978 465.000000
64982 435.000000
64986 430.000000
64990 430.000000
65030 505.000000
65074 495.000000