Unknown column 'registrar' in 'where clause'