SELECT n.*, t.* FROM agenda n, agendacategories t where n.cat_id=t.cat_id and year=2010 and month=9 and day>=5