I have 3 tables, foo, foo2bar, and bar. foo2bar is a many to many map between foo and bar. Here are the contents.
select * from foo +------+ | fid | +----
FWIW, the question isn't really about a many-to-many: this could quite simply be done as a union.
A real many-to-many in SQL is a CROSS JOIN