Looks like your body isn't breaking down or absorbing the fat and or nutrients from the food properly I had the same issue with undigested food in my stool with whipples disease also this bacteria wreaks havoc and damages your liver severely and that's why your probably getting the right side flank pain. You should consider being checked and tested for it without proper treatment you will get sicker and worse.