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 (
    1554, 1560, 3452, 4009, 1556, 2527, 1561, 
    1134, 5696, 2088, 2490, 4022, 9, 2698, 
    1406, 5290, 5721, 508, 1555, 3090, 2372, 
    1587, 4013, 5621
  ) 
  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.00145

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (1554,1560,3452,4009,1556,2527,1561,1134,5696,2088,2490,4022,9,2698,1406,5290,5721,508,1555,3090,2372,1587,4013,5621))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
9 865000.00000000
508 935000.00000000
1134 560000.00000000
1406 760000.00000000
1554 159000.00000000
1555 1945000.00000000
1556 119000.00000000
1560 153000.00000000
1561 288000.00000000
1587 1748000.00000000
2088 247500.00000000
2372 21000.00000000
2490 599000.00000000
2527 93000.00000000
2698 11000.00000000
3090 33000.00000000
3452 4000.00000000
4009 174000.00000000
4013 570000.00000000
4022 2060000.00000000
5290 8000.00000000
5621 120000.00000000
5696 88000.00000000
5721 134000.00000000