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