Fix table aliases in joins

Support the intended "table as alias" syntax for table names.