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 (
    15167, 16346, 16334, 16348, 15749, 14660, 
    14149, 14650, 16347, 15166, 15732, 
    14651, 14140, 14656, 14654, 14661, 
    15751, 16338, 15108, 15753, 16354, 
    14136, 16340, 15747
  ) 
  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.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.061901304,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 48,
          "cost": 0.04656984,
          "filtered": 49.95579147,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (15167,16346,16334,16348,15749,14660,14149,14650,16347,15166,15732,14651,14140,14656,14654,14661,15751,16338,15108,15753,16354,14136,16340,15747) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
14136 16.00000000
14140 18.00000000
14149 22.00000000
14650 4.60000000
14651 4.75000000
14654 18.00000000
14656 18.00000000
14660 8.00000000
14661 18.00000000
15108 6.50000000
15166 6.50000000
15167 5.00000000
15732 6.50000000
15747 12.60000000
15749 7.60000000
15751 10.50000000
15753 3.95000000
16334 5.50000000
16338 8.00000000
16340 6.50000000
16346 3.80000000
16347 6.80000000
16348 4.80000000
16354 2.50000000