Mi restituisce sempre:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/.../controllo_cliente.php on line 10
Nessun utente corrispondenteutente trovato

codice:
$query ="SELECT userID, password FROM _clienti WHERE userID='$user'";
$command = mysql_query($query) or die ("Query errata...");

if (mysql_num_rows($query) == 0) 
echo "Nessun utente corrispondente";

while($riga = mysql_fetch_array($command)) {
if ($riga['userID']==$user and $riga['password']==$pass) {  
        echo "utente trovato"; 
    } else {  
        echo "utente non trovato"; 
    } 
}