Add some basic error checking.
$result = mysql_query("SELECT * FROM users WHERE id='$key' OR last_name ='$key' OR email='$key' OR nome_utente=$key' order by DESC") or die(mysql_error());
The first query definitly has the quotes wrong, and you have missed order by presumably.