Hi there.
I have three tables, say:
(1) Name: Groups
Columns: gid, groupname
(2) Name: Profiles
Columns: profileid, profname
(3) Name: GroupsProfiles
Columns: gid, profileid - corresponds to the columns in the previous tables
Now, say I have an array of profileid's, I would like to construct a query which finds the corresponding gid in GroupsProfiles and then the corresponding groupname in Groups from that.
I have been playing about with joins and things but not quite getting what I want. Any ideas?