SELECT 
  q_product_prices.product_id, 
  MIN(
    IF(
      q_product_prices.percentage_discount = 0, 
      q_product_prices.price, 
      q_product_prices.price - (
        q_product_prices.price * q_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  q_product_prices 
WHERE 
  q_product_prices.product_id IN (
    32689, 32690, 32691, 32692, 32693, 32694, 
    32695, 32696, 32697, 32698, 32699, 
    32700, 32701, 32702, 32703, 32704, 
    32705, 32706, 32707, 32708, 32709, 
    32710, 32711, 32712, 32713, 32714, 
    32715, 32716, 32717, 32718, 32719, 
    32720
  ) 
  AND q_product_prices.lower_limit = 1 
  AND q_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  q_product_prices.product_id

Query time 0.00087

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "76.81"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "q_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": 32,
        "rows_produced_per_join": 6,
        "filtered": "19.99",
        "index_condition": "(`portal`.`q_product_prices`.`product_id` in (32689,32690,32691,32692,32693,32694,32695,32696,32697,32698,32699,32700,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720))",
        "cost_info": {
          "read_cost": "75.53",
          "eval_cost": "1.28",
          "prefix_cost": "76.81",
          "data_read_per_join": "153"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`portal`.`q_product_prices`.`lower_limit` = 1) and (`portal`.`q_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
32689 155.000000
32690 155.000000
32691 190.000000
32692 190.000000
32693 190.000000
32694 190.000000
32695 155.000000
32696 155.000000
32697 155.000000
32698 155.000000
32699 155.000000
32700 155.000000
32701 155.000000
32702 155.000000
32703 155.000000
32704 155.000000
32705 155.000000
32706 155.000000
32707 155.000000
32708 155.000000
32709 190.000000
32710 190.000000
32711 190.000000
32712 190.000000
32713 190.000000
32714 190.000000
32715 86.000000
32716 86.000000
32717 112.000000
32718 112.000000
32719 112.000000
32720 112.000000