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 (
    406193, 451309, 446162, 438117, 439044, 
    406083, 415033, 460158, 422354, 409660, 
    453640, 424754, 410340, 417422, 422439, 
    422004, 421990, 446415, 436834, 440447, 
    410009, 439533, 411516, 442635
  ) 
  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.00151

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.099614043,
    "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": 48,
          "cost": 0.08425304,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (406193,451309,446162,438117,439044,406083,415033,460158,422354,409660,453640,424754,410340,417422,422439,422004,421990,446415,436834,440447,410009,439533,411516,442635) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
406083 1771.97000000
406193 1906.18000000
409660 142.82000000
410009 372.03000000
410340 1972.88000000
411516 952.41000000
415033 1764.06000000
417422 903.78000000
421990 1944.65000000
422004 150.15000000
422354 1973.27000000
422439 156.77000000
424754 263.56000000
436834 1363.13000000
438117 1560.96000000
439044 1729.13000000
439533 423.69000000
440447 1540.47000000
442635 689.94000000
446162 604.57000000
446415 187.53000000
451309 759.88000000
453640 1649.00000000
460158 787.99000000