Fixed lookup query to include tables without source schema.