SELECT 
  product_prices.product_id, 
  MIN(
    IF(
      product_prices.percentage_discount = 0, 
      product_prices.price, 
      product_prices.price - (
        product_prices.price * product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  product_prices 
WHERE 
  product_prices.product_id IN (
    263113, 263774, 263362, 263102, 263145, 
    263138, 263380, 263159, 263360, 263773, 
    263384, 263772, 263146, 263105, 263112, 
    263775, 263151, 263371, 263139, 263383, 
    263173, 263771, 263144, 263098
  ) 
  AND product_prices.lower_limit = 1 
  AND product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  product_prices.product_id

Query time 0.00184

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "51.50"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "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",
        "index_condition": "((`goimagine`.`product_prices`.`lower_limit` = 1) and (`goimagine`.`product_prices`.`product_id` in (263113,263774,263362,263102,263145,263138,263380,263159,263360,263773,263384,263772,263146,263105,263112,263775,263151,263371,263139,263383,263173,263771,263144,263098)) and (`goimagine`.`product_prices`.`usergroup_id` in (0,1)))",
        "cost_info": {
          "read_cost": "46.70",
          "eval_cost": "4.80",
          "prefix_cost": "51.50",
          "data_read_per_join": "1K"
        },
        "used_columns": [
          "id",
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ]
      }
    }
  }
}

Result

product_id price
263098 40.00000000
263102 40.00000000
263105 40.00000000
263112 40.00000000
263113 40.00000000
263138 40.00000000
263139 40.00000000
263144 40.00000000
263145 40.00000000
263146 40.00000000
263151 40.00000000
263159 40.00000000
263173 40.00000000
263360 40.00000000
263362 40.00000000
263371 40.00000000
263380 40.00000000
263383 40.00000000
263384 40.00000000
263771 40.00000000
263772 40.00000000
263773 40.00000000
263774 40.00000000
263775 40.00000000