added check to analyzer to guarantee that only attribute references.
added check to analyzer to guarantee that only attribute references.

added check to analyzer to guarantee that only attribute references in SELECT
and HAVING clauses only appear in group-by expression or inside aggregation
function calls when the input query has aggregation or group-by.

IITDBGroup/gprom,IITDBGroup/gprom,IITDBGroup/gprom,IITDBGroup/gprom,IITDBGroup/gprom,IITDBGroup/gprom