salve , ho problema su questa query:
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.
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.