Unknown column 'the' in 'WHERE'