add dbalias to columns, don't add group by twice