fix for clmn not found bug
updated way of counting depth for subqueries, now it counts the layers of nested subqueries, preventing a one off error
merge SytzeH: Fix for column not found bug

Merge pull request #1347 from SytzeH/sql-layer/clmnNotFound2
https://github.com/FoundationDB/sql-layer/pull/1347