Surgery

A 6 months old child woke up in night, crying with abdominal pain, which got relieved on passing red stool. What is the most likely diagnosis?