hi, is it painful urination or painful passage of stool? probably you have a tiny fissure in anal region, get checked by a surgeon, usually it heals with medicines and high fiber diet + plenty of fluids. If it is painful urination, you can consult your family physician or better, a urologist
and get yourself checked. take care.