Unknown column 'how' in 'where clause'