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 (
    10657, 12619, 12620, 12593, 12595, 12585, 
    12587, 12623, 13091, 12588, 12590, 
    12591, 12592, 10497, 10498, 10499, 
    10500, 10501, 10502, 10503, 10504, 
    10505, 10506, 10507, 10508, 10509, 
    10510, 10511, 10512, 10513, 10514, 
    10515, 10516, 10517, 10518, 10519, 
    10520, 10521, 10641, 10640, 10639, 
    10638, 10637, 10636, 10635, 10634, 
    10633, 10632, 10631, 10630, 10629, 
    10628, 10627, 10626, 10625, 10624, 
    10623, 10622, 10621, 10620, 10619, 
    10618, 10617, 10616
  ) 
  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.00122

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": "3",
      "used_key_parts": ["product_id"],
      "rows": 64,
      "filtered": 99.23484039,
      "index_condition": "cscart_product_prices.product_id in (10657,12619,12620,12593,12595,12585,12587,12623,13091,12588,12590,12591,12592,10497,10498,10499,10500,10501,10502,10503,10504,10505,10506,10507,10508,10509,10510,10511,10512,10513,10514,10515,10516,10517,10518,10519,10520,10521,10641,10640,10639,10638,10637,10636,10635,10634,10633,10632,10631,10630,10629,10628,10627,10626,10625,10624,10623,10622,10621,10620,10619,10618,10617,10616)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
10497 3599.16000000
10498 3599.16000000
10499 3599.16000000
10500 3599.16000000
10501 3599.16000000
10502 4033.73000000
10503 4033.73000000
10504 4033.73000000
10505 4033.73000000
10506 4033.73000000
10507 4033.73000000
10508 4033.73000000
10509 4189.73000000
10510 4189.73000000
10511 4189.73000000
10512 4189.73000000
10513 4189.73000000
10514 4189.73000000
10515 4189.73000000
10516 4189.73000000
10517 4189.73000000
10518 3365.16000000
10519 3365.16000000
10520 3365.16000000
10521 3365.16000000
10616 1292.58000000
10617 1292.58000000
10618 1292.58000000
10619 1292.58000000
10620 1292.58000000
10621 1292.58000000
10622 1292.58000000
10623 1292.58000000
10624 1292.58000000
10625 1582.30000000
10626 1582.30000000
10627 1582.30000000
10628 1582.30000000
10629 1582.30000000
10630 1582.30000000
10631 1582.30000000
10632 1582.30000000
10633 1582.30000000
10634 1582.30000000
10635 1582.30000000
10636 1582.30000000
10637 2540.59000000
10638 2540.59000000
10639 2540.59000000
10640 2540.59000000
10641 2540.59000000
10657 2671.00000000
12585 209523.67000000
12587 209523.67000000
12588 6750.00000000
12590 67629.15000000
12591 67629.15000000
12592 64680.00000000
12593 349146.47000000
12595 131354.16000000
12619 131354.16000000
12620 131354.16000000
12623 209523.67000000
13091 6750.00000000