query attachments by guid