Fix for bad ban check query

"COLLATE NOCASE" should have been after the name check not the IP check.