Select Error: Unknown column 'K' in 'where clause'