$uzklausa = mysql_query("SELECT vip, count(vardas) FROM nariai WHERE vip=1");
$vykdom = mysql_query($uzklausa) or die(mysql_error());
while($kintamasis = mysql_fetch_array($vykdom)){
echo "VIP: ". $kintamasis['COUNT(vardas)'] ."";
echo "<br />";
}