First and foremost, I don't even know how that query is called, but I bet it exists.
I got a table with events, and numbers representing the (fix)persons, whose are going to go to that event. Okay, then I got an user table, where these persons are, with the id-s from events. So events cell looks like "1,5,22,47", the person id-s.
The question is, how am I supposed to echo the event, with every persons name? :O Some like that:
"Event: Class trip with: Edward, Dr. Simons, Mrs. Walker"
Without having 315345345 queries...
Table examples:
Event:
- id, name, date, people
Users:
- id, name
so like: Event:
- "1", "Class trip", "May 2", "1,2,5,6"
- "2", "Museum visit", "May 14", "5,6,8,1"
Users:
- "1", "Edward"
- "2", "Dr. Simons"