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 (
    147, 148, 149, 150, 151, 152, 153, 154, 
    155, 156, 157, 158, 159, 160, 161, 162, 
    163, 164, 165, 167, 168, 169, 170, 171, 
    172, 173, 174, 175, 176, 177, 178, 179, 
    180, 181, 182, 183, 184, 185, 186, 187, 
    188, 189, 190, 191, 1, 5, 7, 8, 9, 10, 11, 
    12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 
    22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 
    32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 
    42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 
    52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 
    63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 
    74, 75, 76, 4
  ) 
  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.00172

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "283.98"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "230.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": 229,
        "filtered": "90.55",
        "cost_info": {
          "read_cost": "7.98",
          "eval_cost": "46.00",
          "prefix_cost": "53.98",
          "data_read_per_join": "5K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`atulecarter_atul_demo6`.`cscart_product_prices`.`lower_limit` = 1) and (`atulecarter_atul_demo6`.`cscart_product_prices`.`product_id` in (147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,1,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,62,63,64,65,67,68,69,70,71,72,73,74,75,76,4)) and (`atulecarter_atul_demo6`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
1 5399.99000000
4 699.99000000
5 899.99000000
7 55.00000000
8 849.99000000
9 999.99000000
10 1199.99000000
11 30.00000000
12 30.00000000
13 11.96000000
14 499.99000000
15 150.00000000
16 349.99000000
17 11.16000000
18 299.99000000
19 79.99000000
20 19.95000000
21 29.99000000
22 799.99000000
23 599.99000000
24 449.99000000
25 599.99000000
26 34.99000000
27 55.00000000
28 100.00000000
29 199.95000000
30 349.95000000
31 32.00000000
32 299.99000000
33 169.99000000
34 25.00000000
35 31.99000000
36 51.00000000
37 159.95000000
38 16.97000000
39 419.00000000
40 229.00000000
41 35.00000000
42 79.00000000
43 369.00000000
44 25.00000000
45 74.00000000
46 21.00000000
47 29.99000000
48 180.00000000
49 120.00000000
50 220.00000000
51 180.00000000
52 139.99000000
53 38.99000000
54 269.00000000
55 359.00000000
56 220.00000000
57 309.00000000
58 779.00000000
59 599.00000000
60 1499.00000000
62 209.95000000
63 189.95000000
64 189.95000000
65 99.95000000
67 339.99000000
68 799.99000000
69 529.99000000
70 499.99000000
71 529.99000000
72 599.99000000
73 589.99000000
74 524.99000000
75 489.99000000
76 439.99000000
147 44.99000000
148 130.00000000
149 53.99000000
150 120.00000000
151 500.00000000
152 700.00000000
153 49.99000000
154 399.99000000
155 79.99000000
156 299.00000000
157 499.00000000
158 4750.00000000
159 11375.00000000
160 200.00000000
161 279.99000000
162 32750.00000000
163 899.99000000
164 249.99000000
165 599.95000000
167 549.95000000
168 1.00000000
169 749.95000000
170 145.99000000
171 499.00000000
172 299.99000000
173 349.99000000
174 100.75000000
175 179.99000000
176 648.95000000
177 400.00000000
178 6.83000000
179 299.97000000
180 199.99000000
181 899.99000000
182 6.80000000
183 249.99000000
184 299.99000000
185 139.99000000
186 299.99000000
187 299.99000000
188 10.00000000
189 1.00000000
190 899.95000000
191 11.98000000