$ 0 0 by Alexander M. Are you using the same code and the same database? What means "untuned server" ? Does the user 2 maybe not have a username in mdl_users ? What happens if you fetch user 3 in the old server?