ugly but it works. validating that JOIN ON-expressions do not refer to fields in tables joined later