in reply to Re: MySQL / Perl theory & design conundrum
in thread [untitled node, ID 280779]

Or you could directly get the group info, which is probably what you were looking for (rather than just the id), by joining the tables:
SELECT group_foo, group_bar FROM groups, belongs_in WHERE belongs_in.user_id = ? AND belongs_in.group_id = groups.group_id

Makeshifts last the longest.