$connection = mysql_connect($dbhost, $dbusername, $dbpassword) or die( mysql_error() );

...

$content = mysql_db_query($dbname, "select n.*, c.descrizione from newscontent n, categorie c

where n.id_categoria = c.id and (n.id_categoria=1 or n.id_categoria=2 or n.id_categoria=3 or n.id_categoria=4 or n.id_categoria=5)order by n.event desc") or die( mysql_error() );