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, 16348, 15749, 16347, 15166, 
    15732, 16338, 15108, 15753, 16354, 
    16340, 15747, 16351, 15750, 15731, 
    15746, 16337, 16336, 15745, 14678, 
    15734, 15733, 15168
  ) 
  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.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.061901185,
    "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.95539856,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (15167,16346,16348,15749,16347,15166,15732,16338,15108,15753,16354,16340,15747,16351,15750,15731,15746,16337,16336,15745,14678,15734,15733,15168) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
14678 4.50000000
15108 6.50000000
15166 6.50000000
15167 5.00000000
15168 6.50000000
15731 6.50000000
15732 6.50000000
15733 6.50000000
15734 5.80000000
15745 4.80000000
15746 5.50000000
15747 12.60000000
15749 7.60000000
15750 8.00000000
15753 3.95000000
16336 6.50000000
16337 8.00000000
16338 8.00000000
16340 6.50000000
16346 3.80000000
16347 6.80000000
16348 4.80000000
16351 4.80000000
16354 2.50000000