Unknown column 'status_pd' in 'where clause'