Unknown column 'P1700' in 'where clause'