Fixed nested joins and empty columns