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 (
    14849, 14850, 14851, 14852, 14853, 14855, 
    14858, 14860, 14861, 14862, 14875, 
    14880, 14881, 14894, 14933, 15229, 
    15284, 15285, 15288, 15519, 15712, 
    15713, 15726, 15772, 15778, 15837, 
    15866, 15867, 15868, 15872
  ) 
  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.00092

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "72.01"
    },
    "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": 30,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`portal`.`q_product_prices`.`product_id` in (14849,14850,14851,14852,14853,14855,14858,14860,14861,14862,14875,14880,14881,14894,14933,15229,15284,15285,15288,15519,15712,15713,15726,15772,15778,15837,15866,15867,15868,15872))",
        "cost_info": {
          "read_cost": "70.81",
          "eval_cost": "1.20",
          "prefix_cost": "72.01",
          "data_read_per_join": "143"
        },
        "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
14849 424.000000
14850 61.000000
14851 249.000000
14852 62.000000
14853 1659.000000
14855 421.000000
14858 116.000000
14860 49.000000
14861 169.000000
14862 186.000000
14875 56.000000
14880 149.000000
14881 124.000000
14894 104.000000
14933 66.000000
15229 119.000000
15284 62.000000
15285 109.000000
15288 86.000000
15519 46.000000
15712 119.000000
15713 46.000000
15726 89.000000
15772 56.000000
15778 61.000000
15837 44.000000
15866 52.000000
15867 52.000000
15868 52.000000
15872 41.000000