[#1855] Re-fixed the sql query for user passwords.
[#1855] Re-fixed the sql query for user passwords.