I'm using this code to count the rows in selected table
$queryvps = "SELECT COUNT(ID) FROM vpss";
$resultvps = mysql_query($queryvps) or die(mysql_error());
foreach(mysql_fetch_array($resultvps) as $vpscount);
I need to count results from another table but they are not unique, how to count duplicate results once?