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 (
    32753, 32754, 32755, 32756, 32757, 32758, 
    32759, 32760, 32761, 32762, 32763, 
    32764, 32765, 32766, 32767, 32768, 
    32769, 32770, 32771, 32772, 32773, 
    32774, 32775, 32776, 32777, 32778, 
    32779, 32780, 32781, 32782, 32783, 
    32784
  ) 
  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.00085

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 (32753,32754,32755,32756,32757,32758,32759,32760,32761,32762,32763,32764,32765,32766,32767,32768,32769,32770,32771,32772,32773,32774,32775,32776,32777,32778,32779,32780,32781,32782,32783,32784))",
        "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
32753 207.000000
32754 207.000000
32755 207.000000
32756 207.000000
32757 190.000000
32758 190.000000
32759 190.000000
32760 207.000000
32761 207.000000
32762 207.000000
32763 155.000000
32764 155.000000
32765 155.000000
32766 155.000000
32767 155.000000
32768 207.000000
32769 207.000000
32770 207.000000
32771 207.000000
32772 173.000000
32773 173.000000
32774 173.000000
32775 173.000000
32776 173.000000
32777 173.000000
32778 173.000000
32779 173.000000
32780 173.000000
32781 173.000000
32782 207.000000
32783 207.000000
32784 207.000000