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 | +----
SELECT * FROM foo LEFT OUTER JOIN (foo2bar JOIN bar ON (foo2bar.bid = bar.bid AND zid = 30)) USING (fid);
Tested on MySQL 5.0.51.
This is not a subquery, it just uses parentheses to specify the precedence of joins.