Fixed problem with selecting user by IDs