Hi. This is the exact site of a left colon and as you have pain, white foam like things in poop, you may be suffering from colitis
. If of a short duration , it will be alright with antibiotics . If of a long duration ,, you need to get a consultation with gastroenterologist and to undergo colonoscopy
for the real diagnosis and further treatment.