Fix shard key query part if field name aliases are used