sql error : Unknown column '$thepid' in 'where clause'