
            select
                M.Message_id as "Message_id"
            from
                msg.Message M
            where
                M.pmUser_insID = '330100329055' and
                M.Evn_id = '500801016910883' and
                M.NoticeType_id = 5 and
                M.UserSend_ID = 0 and
                M.Message_isSent = 1 and
                M.Message_pid is null
        
