select * from letter where type='asnafformconfirmation' and (sid='' or sid='0') failed: