SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    174, 171, 280, 282, 278, 20, 119, 100, 
    46, 204, 45, 68, 29, 6, 8, 14, 9, 10, 19, 
    21, 7, 27, 124, 50, 51, 49, 48, 54, 44, 
    194, 137, 153
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.01041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "45.53"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "ref",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "lower_limit",
        "used_key_parts": [
          "lower_limit"
        ],
        "key_length": "3",
        "ref": [
          "const"
        ],
        "rows_examined_per_scan": 182,
        "rows_produced_per_join": 18,
        "filtered": "10.00",
        "index_condition": "((`twebezli_Commercemodalpopup`.`cscart_product_prices`.`lower_limit` <=> 1) and ((`twebezli_Commercemodalpopup`.`cscart_product_prices`.`product_id` in (174,171,280,282,278,20,119,100,46,204,45,68,29,6,8,14,9,10,19,21,7,27,124,50,51,49,48,54,44,194,137,153)) and (`twebezli_Commercemodalpopup`.`cscart_product_prices`.`usergroup_id` in (0,1))))",
        "cost_info": {
          "read_cost": "9.00",
          "eval_cost": "3.65",
          "prefix_cost": "45.53",
          "data_read_per_join": "438"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ]
      }
    }
  }
}

Result

product_id price
6 329.99000000
7 55.00000000
8 849.99000000
9 999.99000000
10 1199.99000000
14 499.99000000
19 79.99000000
20 19.95000000
21 29.99000000
27 55.00000000
29 199.95000000
44 25.00000000
45 74.00000000
46 21.00000000
48 180.00000000
49 120.00000000
50 220.00000000
51 180.00000000
54 269.00000000
68 799.99000000
100 22.70000000
119 17.99000000
124 4595.00000000
137 0.00000000
153 49.99000000
171 499.00000000
174 100.75000000
194 10.60000000
204 14.99000000
278 75.00000000
280 50.00000000
282 75.00000000