Fixing issue that memory_by_user and memory_by_host were grouping by a column that is ambiguous.

The memory_by_user and memory_by_host were grouping by user and host respectively. But those could both be a column in the underlying tables and in the resulting view. Changed to make it explicit to use the same expression as used for the view column.