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 (
    64684, 61166, 62171, 61048, 61322, 64726, 
    64697, 64690, 65096, 61937, 64716, 
    62057, 64722, 64737, 64710, 64365, 
    64732, 64771, 64742, 62272, 64747, 
    62449, 64764, 61428
  ) 
  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.00121

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 (64684,61166,62171,61048,61322,64726,64697,64690,65096,61937,64716,62057,64722,64737,64710,64365,64732,64771,64742,62272,64747,62449,64764,61428) and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
61048 328.000000
61166 225.000000
61322 320.000000
61428 275.000000
61937 252.000000
62057 235.000000
62171 320.000000
62272 340.000000
62449 315.000000
64365 200.000000
64684 290.000000
64690 605.000000
64697 262.000000
64710 260.000000
64716 265.000000
64722 240.000000
64726 250.000000
64732 252.000000
64737 270.000000
64742 215.000000
64747 210.000000
64764 210.000000
64771 258.000000
65096 252.000000