scusa dov'è il problema?
la query è giusta.
TI da qualche errore?
Codice PHP:
$result=mysql_query("select *
from (manifestazioni as m
left join comuni as c
on m.idcomune=c.idcomune )
left join genere as g on m.idGenere=g.idGenere
where m.stato='approvato'
and m.datafine>'".date("y-m-d")."'
and g.idCat=94 or g.idCat=116
order by datafine asc
limit 0,50");
if(mysql_num_rows($result)==0)
{
print "Non sono presenti Eventi per i prossimi giorni.";
exit;
}
print "<table WIDTH='100%' border='0' cellpadding='0' cellspacing='0'>";