Expression #2 of ORDER BY clause is not in SELECT list, references column 'medpat16.tblfeatures_hip.featPrime' which is not in SELECT list; this is incompatible with DISTINCT