[BUGFIX] Invalid SQL result after four login failures