Unknown column 'the' in 'where clause'