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 (
    64859, 65675, 65677, 65676, 65662, 65655, 
    65799, 65797, 65656, 65658, 65812, 
    65821, 65802, 65810, 65819, 65809, 
    65822, 65820, 65811, 65806, 65800, 
    65801, 65818, 65807
  ) 
  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.00143

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 (64859,65675,65677,65676,65662,65655,65799,65797,65656,65658,65812,65821,65802,65810,65819,65809,65822,65820,65811,65806,65800,65801,65818,65807) and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
64859 910.000000
65655 700.000000
65656 725.000000
65658 775.000000
65662 855.000000
65675 450.000000
65676 440.000000
65677 510.000000
65797 1438.000000
65799 2377.000000
65800 2540.000000
65801 2591.000000
65802 2551.000000
65806 1167.000000
65807 1178.000000
65809 1079.000000
65810 1250.000000
65811 1253.000000
65812 1194.000000
65818 1058.000000
65819 958.000000
65820 1078.000000
65821 1079.000000
65822 1124.000000