Query now accepts bans

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>