Well, sort of.

The query for account should return 3 columns, the first column tell us if the password is expired (account suspended), the second one if a new password should be asked and the third one if the password itself if NULL or BLANK.

But i agree with you, this code is not right, there is no point to get the four column value.