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 (
    61937, 62229, 64353, 64350, 62246, 64355, 
    62843, 63513, 63467, 63510, 63852, 
    62979, 63853, 63515, 63810, 63854, 
    63806, 64946, 64865, 64863, 64947
  ) 
  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.00098

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": 42,
        "selectivity_pct": 1.556708673
      },
      "rows": 42,
      "filtered": 100,
      "index_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (61937,62229,64353,64350,62246,64355,62843,63513,63467,63510,63852,62979,63853,63515,63810,63854,63806,64946,64865,64863,64947) and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
61937 252.000000
62229 289.000000
62246 335.000000
62843 336.000000
62979 245.000000
63467 317.000000
63510 395.000000
63513 300.000000
63515 347.000000
63806 490.000000
63810 490.000000
63852 389.000000
63853 465.000000
63854 541.000000
64350 310.000000
64353 375.000000
64355 443.000000
64863 353.000000
64865 294.000000
64946 284.000000
64947 440.000000