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 (
    1437277, 1903062, 1128285, 480519, 
    447578, 522515, 241391, 1118346, 1128289, 
    687122, 897024, 1129605, 447588, 1274272, 
    481220, 1080078, 596382, 444124, 1108774, 
    697795
  ) 
  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.00155

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "45.23"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 40,
        "rows_produced_per_join": 40,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "41.23",
          "eval_cost": "4.00",
          "prefix_cost": "45.23",
          "data_read_per_join": "960"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`maniamall_cscart`.`cscart_product_prices`.`lower_limit` = 1) and (`maniamall_cscart`.`cscart_product_prices`.`product_id` in (1437277,1903062,1128285,480519,447578,522515,241391,1118346,1128289,687122,897024,1129605,447588,1274272,481220,1080078,596382,444124,1108774,697795)) and (`maniamall_cscart`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
241391 59.990000
444124 362.490000
447578 62.490000
447588 26.240000
480519 37.490000
481220 11.240000
522515 149.990000
596382 42.500000
687122 117.490000
697795 8.740000
897024 87.490000
1080078 94.990000
1108774 46.240000
1118346 568.740000
1128285 257.490000
1128289 257.490000
1129605 257.490000
1274272 621.240000
1437277 112.490000
1903062 174.990000