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 (
    450261, 416995, 446789, 426059, 409013, 
    414886, 444321, 406390, 408586, 425085, 
    413163, 415231, 429505, 404254, 401286, 
    447216, 440066, 456947, 406411, 404724, 
    416102, 419585, 417300, 439809, 410868, 
    452526, 440855, 429487, 429075, 407708, 
    457100, 449639
  ) 
  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.00168

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.132572317,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 64,
          "cost": 0.11207368,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (450261,416995,446789,426059,409013,414886,444321,406390,408586,425085,413163,415231,429505,404254,401286,447216,440066,456947,406411,404724,416102,419585,417300,439809,410868,452526,440855,429487,429075,407708,457100,449639) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401286 1282.47000000
404254 1692.52000000
404724 408.27000000
406390 1100.28000000
406411 508.60000000
407708 620.16000000
408586 1241.01000000
409013 1878.69000000
410868 654.38000000
413163 740.05000000
414886 1670.65000000
415231 1193.70000000
416102 831.75000000
416995 208.93000000
417300 1395.88000000
419585 1707.07000000
425085 740.58000000
426059 1132.01000000
429075 672.07000000
429487 1104.14000000
429505 1110.55000000
439809 1396.10000000
440066 622.52000000
440855 336.61000000
444321 1105.96000000
446789 222.84000000
447216 1609.48000000
449639 1640.64000000
450261 1330.11000000
452526 1906.84000000
456947 295.34000000
457100 429.78000000