Ask a Doctor and Get an Answer to Your Medical Question ASAP
You have persistent inflammation in intestine due to weakened immunity.
Now you may also have bacterial or parasitic infection as well.
Stool tests are recommended for confirmation since going on for a while.
You can try over the counter Loperamide tablets every 6 hours to stop diarrhea.
You should consider following low fermentable sugar diet ( FODMAP diet) to reduce your symptoms.
Here is the link:FODMAP Diet: What You Need to Know | Johns Hopkins Medicine
Please also include prebiotics like Inulin daily to keep your colon acidic which prevent gas producing bacteria. Also take a probiotic ( lactobacilli, bifidobacterium) daily to restore intestinal microbial balance. Culturelle 30 Counts twice daily should be fine.