Fix: IP bans were broken after previous SQL changes