added check for expressions incorrectly referencing projection aliases