Unknown column 'notary' in 'where clause'