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 (
    284648, 282838, 282836, 278049, 275782, 
    272636, 269248, 266156, 265783, 266092, 
    265784, 258086, 252518, 257589, 256790, 
    256001, 252277, 242304, 239493, 237409, 
    235920, 231091, 227946, 224968, 226497, 
    225207, 225304, 225273, 204337, 201932, 
    197488, 196621, 196622, 201889, 192454, 
    193258, 192450, 108385, 144425, 175093, 
    167561, 167552, 161993, 167239, 166202, 
    165403, 165290, 164900, 164913, 161865, 
    164905, 162133, 164899, 160627, 156319, 
    132617, 139306, 120811, 139394, 132610, 
    139524, 131992, 127555, 126324, 126318, 
    126321, 108204, 114844, 120905, 108233, 
    120730, 108232, 120456, 108246, 108180
  ) 
  AND product_prices.lower_limit = 1 
  AND product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  product_prices.product_id

Query time 0.01016

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "61.60"
    },
    "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": 75,
        "rows_produced_per_join": 7,
        "filtered": "10.00",
        "index_condition": "(`goimagine`.`product_prices`.`product_id` in (284648,282838,282836,278049,275782,272636,269248,266156,265783,266092,265784,258086,252518,257589,256790,256001,252277,242304,239493,237409,235920,231091,227946,224968,226497,225207,225304,225273,204337,201932,197488,196621,196622,201889,192454,193258,192450,108385,144425,175093,167561,167552,161993,167239,166202,165403,165290,164900,164913,161865,164905,162133,164899,160627,156319,132617,139306,120811,139394,132610,139524,131992,127555,126324,126318,126321,108204,114844,120905,108233,120730,108232,120456,108246,108180))",
        "cost_info": {
          "read_cost": "60.85",
          "eval_cost": "0.75",
          "prefix_cost": "61.60",
          "data_read_per_join": "179"
        },
        "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
108180 25.00000000
108204 20.00000000
108232 20.00000000
108233 20.00000000
108246 10.00000000
108385 8.00000000
114844 15.00000000
120456 15.00000000
120730 15.00000000
120811 20.00000000
120905 20.00000000
126318 25.00000000
126321 8.00000000
126324 20.00000000
127555 10.00000000
131992 25.00000000
132610 20.00000000
132617 10.00000000
139306 8.00000000
139394 15.00000000
139524 10.00000000
144425 8.00000000
156319 10.00000000
160627 10.00000000
161865 10.00000000
161993 15.00000000
162133 12.00000000
164899 10.00000000
164900 20.00000000
164905 12.00000000
164913 20.00000000
165290 8.00000000
165403 40.00000000
166202 10.00000000
167239 25.00000000
167552 15.00000000
167561 9.00000000
175093 15.00000000
192450 9.00000000
192454 10.00000000
193258 9.00000000
196621 10.00000000
196622 10.00000000
197488 10.00000000
201889 10.00000000
201932 10.00000000
204337 0.00000000
224968 25.00000000
225207 30.00000000
225273 30.00000000
225304 30.00000000
226497 30.00000000
227946 20.00000000
231091 22.50000000
235920 15.00000000
237409 20.00000000
239493 20.00000000
242304 10.00000000
252277 24.00000000
252518 20.00000000
256001 20.00000000
256790 24.00000000
257589 20.00000000
258086 16.00000000
265783 15.00000000
265784 15.00000000
266092 15.00000000
266156 15.00000000
269248 20.00000000
272636 30.00000000
275782 15.00000000
278049 5.00000000
282836 15.00000000
282838 15.00000000
284648 15.00000000