Fixing issue with join getQuery(), which was producing a WHERE clause
with IN () under some circumstances, which isn't valid MySQL.  So detect
that, and replace it with 1=-1