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 (
    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.00111

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 (164,236,234,150,151,178,181,248,65,64,63,62,66,140,141,144,143,142,13)) 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
13 11.96000000
62 209.95000000
63 189.95000000
64 189.95000000
65 99.95000000
66 389.95000000
140 99.95000000
141 99.95000000
142 399.95000000
143 79.95000000
144 99.95000000
150 120.00000000
151 500.00000000
164 249.99000000
178 6.83000000
181 899.99000000
234 59.99000000
236 299.99000000
248 372.27000000