It can't. joins based :include overwrites the select. The non joined based include doesn't but rails won't use it because it sees you referencing tables other than the main table in the query (and isn't smart enough to work out that it's ok because it's just a subselect).
Have you tried using the :joins key and manually specifying your
joins?
It depends on what you're trying to achieve. If you want to eager load
stuff the :joins won't do it. If you just want to join some tables
because you need them for your conditions etc... then :joins is
exactly what is needed.