Help with digestive issues….

45 yr old female. Had digestive issues for 2 months. Started out with fouls smelling bowels and yellow stool. Even now when my stool is brown, there is a yellow foamy liquid (not smelly anymore usually). Abdominal (stabbing) pains in upper right and left quadrant. Lost 7 lbs in last 2 weeks but idk if it’s due to anxiety. I had a CT scan for pancreatic cancer and it was negative, how sure can I be that I don’t have it? Should I ask for MRI?