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 (
    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
  ) 
  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.00099

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "150.39"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "96.00"
      },
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "ALL",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "rows_examined_per_scan": 256,
        "rows_produced_per_join": 96,
        "filtered": "37.50",
        "cost_info": {
          "read_cost": "35.19",
          "eval_cost": "19.20",
          "prefix_cost": "54.39",
          "data_read_per_join": "2K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`atulecarter_new_april_setup`.`cscart_product_prices`.`lower_limit` = 1) and (`atulecarter_new_april_setup`.`cscart_product_prices`.`product_id` in (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)) and (`atulecarter_new_april_setup`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
1 5399.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
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