Ich habe 3 Tabellen: oc_artists, oc_songs, oc_songs_tagsmysql LEFT JOIN und innere Verknüpfung 3 Tabellen
I 2 Tabellen mit diesem Code auswählen:
SELECT * FROM `oc_songs` LEFT JOIN oc_songs_tags ON oc_songs.song_id=oc_songs_tags.song_id
WHERE oc_songs_tags.song_tag IS NULL
Jetzt brauche ich Daten von oc_artists auszuwählen. .. ich habe versucht, diese Fragen zu beantworten: MySQL LEFT JOIN 3 tables
Und hier ist mein Code:
SELECT * FROM oc_songs
LEFT JOIN oc_artists
INNER JOIN oc_songs_tags
ON oc_songs.song_artist_id = oc_artists.artist_id
ON oc_songs_tags.song_id = oc_songs.song_id
Aber ich bekomme diese Fehlermeldung
8 errors were found during analysis.
Unrecognized keyword. (near "ON" at position 131)
Unexpected token. (near "oc_songs_tags" at position 134)
Unexpected token. (near "." at position 147)
Unexpected token. (near "song_id" at position 148)
Unexpected token. (near "=" at position 156)
Unexpected token. (near "oc_songs" at position 158)
Unexpected token. (near "." at position 166)
Unexpected token. (near "song_id" at position 167)