Merge pull request #14834 from al2o3cr/issue14155

Correctly alias table names when joining more than once