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 (
    26, 35, 47, 81, 107, 109, 91, 92, 161, 188, 
    202, 203, 34, 31, 38, 80, 165, 166, 86, 
    106, 105, 247, 101, 33, 32, 163, 244, 
    212, 155, 102, 55, 176, 69, 138, 110, 
    36, 206, 28, 184, 183, 133, 132, 125, 
    120, 223, 225, 224, 146, 147, 93, 117, 
    219, 222, 220, 221, 87, 113, 139, 118, 
    83, 157, 123, 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, 164, 236, 234, 
    150, 151, 178, 181, 248, 65, 64, 63, 62, 
    66, 140, 141, 144, 143, 142, 13
  ) 
  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.00144

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "279.98"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "226.00"
      },
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "ALL",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "rows_examined_per_scan": 254,
        "rows_produced_per_join": 225,
        "filtered": "88.98",
        "cost_info": {
          "read_cost": "8.78",
          "eval_cost": "45.20",
          "prefix_cost": "53.98",
          "data_read_per_join": "5K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`atulecarter_atul_demo7`.`cscart_product_prices`.`lower_limit` = 1) and (`atulecarter_atul_demo7`.`cscart_product_prices`.`product_id` in (26,35,47,81,107,109,91,92,161,188,202,203,34,31,38,80,165,166,86,106,105,247,101,33,32,163,244,212,155,102,55,176,69,138,110,36,206,28,184,183,133,132,125,120,223,225,224,146,147,93,117,219,222,220,221,87,113,139,118,83,157,123,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,164,236,234,150,151,178,181,248,65,64,63,62,66,140,141,144,143,142,13)) and (`atulecarter_atul_demo7`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
6 329.99000000
7 55.00000000
8 849.99000000
9 999.99000000
10 1199.99000000
13 11.96000000
14 499.99000000
19 79.99000000
20 19.95000000
21 29.99000000
26 34.99000000
27 55.00000000
28 100.00000000
29 199.95000000
31 32.00000000
32 299.99000000
33 169.99000000
34 25.00000000
35 31.99000000
36 51.00000000
38 16.97000000
44 25.00000000
45 74.00000000
46 21.00000000
47 29.99000000
48 180.00000000
49 120.00000000
50 220.00000000
51 180.00000000
54 269.00000000
55 359.00000000
62 209.95000000
63 189.95000000
64 189.95000000
65 99.95000000
66 389.95000000
68 799.99000000
69 529.99000000
80 55.00000000
81 49.50000000
83 19.99000000
86 359.00000000
87 19.99000000
91 10700.00000000
92 3225.00000000
93 19.99000000
100 22.70000000
101 188.88000000
102 295.00000000
105 169.99000000
106 179.99000000
107 465.00000000
109 140.00000000
110 15.99000000
113 449.99000000
117 729.99000000
118 30.99000000
119 17.99000000
120 199.99000000
123 17.99000000
124 4595.00000000
125 149.99000000
132 269.99000000
133 229.99000000
137 0.00000000
138 0.00000000
139 0.00000000
140 99.95000000
141 99.95000000
142 399.95000000
143 79.95000000
144 99.95000000
146 44.99000000
147 44.99000000
150 120.00000000
151 500.00000000
153 49.99000000
155 79.99000000
157 499.00000000
161 279.99000000
163 899.99000000
164 249.99000000
165 599.95000000
166 749.95000000
171 499.00000000
174 100.75000000
176 648.95000000
178 6.83000000
181 899.99000000
183 249.99000000
184 299.99000000
188 10.00000000
194 10.60000000
202 34.68000000
203 34.68000000
204 14.99000000
206 179.99000000
212 129.95000000
219 529.99000000
220 1099.99000000
221 2049.00000000
222 529.99000000
223 499.99000000
224 479.99000000
225 199.99000000
234 59.99000000
236 299.99000000
244 729.99000000
247 329.49000000
248 372.27000000
278 75.00000000
280 50.00000000
282 75.00000000