Hi I am trying to inner join 6 tables, however it seems to not load when I run the sql, in PHPMyAdmin
It does not give me any error code.
SELECT
t1.id as id,
t1.stationid as search_stationid,
t1.artist as search_artistid,
t1.album as search_albumid,
t1.song as search_song,
t2.id as artistid,
t2.name as artistname,
t3.id as artid,
t3.art as artHTML,
t4.id as albumid,
t4.artist_id as match_artistid,
t4.art as match_artid,
t5.id as songid,
t5.song_title as songtitle,
t5.artist_id as song_artistid,
t5.album_id as song_albumid,
t5.songtime as songtime,
t6.radio_station_name as station_name,
t6.radio_station_high_stream as high_stream,
t6.radio_station_logo as logo,
t6.radio_stream_type_high as stream,
t6.type_high as type,
t6.radio_station_homepage as link
FROM tbl_search as t1
INNER JOIN tbl_radio_station as t6
ON t6.radio_station_id = t1.id
INNER JOIN tbl_search_artist as t2
ON t2.id = t1.artist
INNER JOIN tbl_search_album as t4
ON t4.id = t1.album
INNER JOIN tbl_search_albumart as t3
ON t3.id = t4.id
INNER JOIN tbl_search_song as t5
ON t5.id = t1.song
WHERE id = 1
