Error: SELECT distinct(AphMake) as Make,HMakeCode FROM O_XTabMakeModelRef a,O_IndexList b WHERE a.HMakeCode=b.MfrCd AND PartTypeNbr='591' Group by 1 Order By 1

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'qualitya_qapnet_db.a.HMakeCode' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by