Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregate

NoSuchKey