Fixed table alias issue in autocomplete join's WHERE clause, was using
the main table name, not the alias.  Blew up when more than one join to
same table.