Hi, Welcome to Health care magic forum.
It appears that you have a difficult G.I. tract, with some or other problem at every step.
As i think, it might be the amoebic
colitis, the infection with the entamoeba hystolytica. charecterized by the pain and semisolid stools.
I advise you to consult your doctor, because you should not take risk . You may need ti have a
colonoscopy.
I advise you to avoid milk, milk products, wheat, rye, barley, spices, junk foods, and oily foods.
Wishing for a quick and complete recovery. Thank you.