Rails 2's little brain is being broken by such complex joins