<+rageroro> change it to
<+rageroro> SELECT ckey, job FROM erro_ban WHERE bantype = 'APPEARANCE_BAN' AND NOT unbanned = 1