inner join

luigi777

Utente Attivo
14 Feb 2008
1.086
1
38
43
Massa, Italy
salve , ho problema su questa query:
Codice:
SELECT utenti._user as _user , news_categorie.titolo as _cat , news.*, DATE_FORMAT(news.data,'%d/%M/%Y') as 'data_it', DATE_FORMAT(news.data,'%H:%i') as 'ore' FROM utenti 
      INNER JOIN news 
         ON utenti.id = news._userid INNER JOIN news_categorie
		 INNER JOIN ON tags = tags.tag_name 
        ON news_categorie.id = news._catid WHERE news.active=1 and tag LIKE '%".$db_tag."' ORDER BY data DESC

vorrei prendere con una inner join la tabella tags e il suo campo tag_name,

come faccio?

per adesso mi segnala:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON tags = tags.tag_name ON news_categorie.id = news._catid WHERE news.' at line 4

idea = come fare?

grazie mille. e buona domenica e inizio settimana.
 

Discussioni simili