Hi,
I think 2 things, but I am no doctor. 1. Its the IBS. 2. It's some sort of acid reflux/heartburn symptom. I didn't really suffer from heartburn too frequently, but after eating my stomach would hurt.
You should go to the doc, they may just prescribe you some heartburn meds or you can try something over the counter.