Fix a couple more bugs with bans. Logs were checking for the target in
the query instead of the ID, and a fatal error when requesting an
account using a banned IP, Email, or name.