I have three tables, that are like:
users
---------------
id
etc...
badges
---------------
id
title
etc...
badges_data
---------------
badge_id
user_id
What I’m trying to do is select a set of about 100 users, and also grab all the badges they have, and show them next to their respective users.
What is the best way to go about this?
The above will return data like
If you think the format returned by group_concat is difficult to read/parse
this will return multiple rows for same user if the user has multiple badges