Fix wrong column name in join for aggregation
(Some aggregation work also previous because in database a lot of column
has the same name)