typo in query for get_attachment_handle