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 (
    273653, 274149, 273584, 274159, 273774, 
    273917, 274014, 274052, 277121, 276772, 
    273782, 274054, 274290, 273809, 273807, 
    285487, 276798, 287053, 285573, 291359, 
    393245, 340444, 333844, 345724
  ) 
  AND product_prices.lower_limit = 1 
  AND product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  product_prices.product_id

Query time 0.00124

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "26.54"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "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": 26,
        "rows_produced_per_join": 2,
        "filtered": "10.00",
        "index_condition": "(`goimagine`.`product_prices`.`product_id` in (273653,274149,273584,274159,273774,273917,274014,274052,277121,276772,273782,274054,274290,273809,273807,285487,276798,287053,285573,291359,393245,340444,333844,345724))",
        "cost_info": {
          "read_cost": "26.28",
          "eval_cost": "0.26",
          "prefix_cost": "26.54",
          "data_read_per_join": "62"
        },
        "used_columns": [
          "id",
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`goimagine`.`product_prices`.`lower_limit` = 1) and (`goimagine`.`product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
273584 420.00000000
273653 498.00000000
273774 1400.00000000
273782 530.00000000
273807 560.00000000
273809 510.00000000
273917 9.00000000
274014 77.00000000
274052 32.00000000
274054 31.00000000
274149 225.00000000
274159 389.00000000
274290 285.00000000
276772 12.00000000
276798 475.00000000
277121 9.00000000
285487 1225.00000000
285573 589.00000000
287053 139.00000000
291359 76.00000000
333844 77.00000000
340444 77.00000000
345724 77.00000000
393245 77.00000000