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 (
    431514, 431515, 431516, 431517, 431518, 
    431519, 431520, 431521, 431522, 431523, 
    431524, 431525, 431526, 431527, 431528, 
    431529, 431530, 431531, 431532, 431533, 
    431534, 431535, 431536, 431537
  ) 
  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.00143

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "67.28"
    },
    "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": 48,
        "rows_produced_per_join": 48,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "57.68",
          "eval_cost": "9.60",
          "prefix_cost": "67.28",
          "data_read_per_join": "3K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`webmarco`.`cscart_product_prices`.`lower_limit` = 1) and (`webmarco`.`cscart_product_prices`.`product_id` in (431514,431515,431516,431517,431518,431519,431520,431521,431522,431523,431524,431525,431526,431527,431528,431529,431530,431531,431532,431533,431534,431535,431536,431537)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
431514 9.90000000
431515 9.90000000
431516 9.90000000
431517 9.90000000
431518 9.90000000
431519 9.90000000
431520 9.90000000
431521 9.90000000
431522 9.90000000
431523 9.90000000
431524 9.90000000
431525 9.90000000
431526 9.90000000
431527 9.90000000
431528 9.90000000
431529 9.90000000
431530 9.90000000
431531 9.90000000
431532 9.90000000
431533 9.90000000
431534 9.90000000
431535 9.90000000
431536 9.90000000
431537 9.90000000