Unknown column 'quote' in 'where clause'