Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
subquery is dependent so if you wrap it again it allows the query to complete in time to finish the rest. relevant to HABTM searching.
see post at http://stackoverflow.com/questions/9154881/using-mysql-in-causes-loop for details