Fix SQL bugs in IOBan::isAccountBanned
ProtocolStatus cleanup