bugfix: fixed sql error in ipbans search