Fix bug relating to ambiguous "name" column for the "in" operator
Fix bug relating to ambiguous "name" column for the "in" operator

This work is intended to fix the test failure that we have right
now for fact subqueries that use the `in` operator and try to
join on the `name` field.  The problem is that "name" was ambiguous;
it could have been referring to either `certname_facts.name`, or
to `certnames.name` (which we were `JOIN`ing in to the query).

We decided that using a subselect in our `WHERE` clause (instead of
that `JOIN`) was cleaner, since the only reason we were `JOIN`ing
in the `certnames` table was to check the `deactivated` field (i.e.,
we weren't actually selecting any fields from that table).  This
commit switches the logic for checking the `active` status to use
that approach.

As a side effect, it turned out that our entire infrastructure for
supporting `JOIN` clauses as a generic part of the query compilation
was no longer being used by any of the other code, so I discussed
with Nick and we decided to go ahead and remove it for now.

mullr/puppetdb,melissa/puppetdb,kbarber/puppetdb,senior/puppetdb,mullr/puppetdb,johnduarte/puppetdb,waynr/puppetdb,wkalt/puppetdb,waynr/puppetdb,cprice404/puppetdb,wkalt/puppetdb,mullr/puppetdb,wkalt/puppetdb,senior/puppetdb,nfagerlund/puppetdb,rbrw/puppetdb,grimradical/puppetdb,nfagerlund/puppetdb,puppetlabs/puppetdb,mullr/puppetdb,kbrezina/puppetdb,ajroetker/puppetdb,rbrw/puppetdb,senior/puppetdb,kbarber/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,johnduarte/puppetdb,highb/puppetdb,kbrezina/puppetdb,shrug/puppetdb,highb/puppetdb,kbarber/puppetdb,highb/puppetdb,ajroetker/puppetdb,github/puppetlabs-puppetdb,wkalt/puppetdb,kbarber/puppetdb,grimradical/puppetdb,kbrezina/puppetdb,johnduarte/puppetdb,shrug/puppetdb,shrug/puppetdb,mullr/puppetdb,nfagerlund/puppetdb,puppetlabs/puppetdb,jantman/puppetdb,waynr/puppetdb,waynr/puppetdb,github/puppetlabs-puppetdb,ajroetker/puppetdb,jantman/puppetdb,github/puppetlabs-puppetdb,shrug/puppetdb,rbrw/puppetdb,highb/puppetdb,kbrezina/puppetdb,ajroetker/puppetdb,grimradical/puppetdb,cprice404/puppetdb,grimradical/puppetdb,johnduarte/puppetdb,rbrw/puppetdb,senior/puppetdb,jantman/puppetdb,puppetlabs/puppetdb,melissa/puppetdb,melissa/puppetdb,cprice404/puppetdb