PlayerInfo[playerid][Name] is smaller than 23, or PlayerInfo[playerid][Password] is smaller than 24. Also unless you like server lags, consider moving to threaded queries.
Doesn't string buffer overflow mean that the lenght is greater than the one was specified? The max name can be 21 (including null) so I guess the password is greater than 24.