This will fail if a table occurs multiple times in a join expression, which is something that can occur (e.g. self joins).