Do something useful with SQL errors on search