I'm trying to select all the tags that go with a post in my database, but for some reason, I'm only getting one tag for every post that has tags.
This is the query I'm using:
SELECT p.post_id, p.post_title, t.tag_id, t.tag_name
FROM posts p
LEFT JOIN posts_tags pt ON pt.post_id = p.post_id
LEFT JOIN tags t ON pt.tag_id = t.tag_id
Any ideas?