Hello, Sorry she is sick. Please mention what the doctor said and gave for the condition.
Depending upon severity of pain, she has to be seen in ER for tests like sonography, urine, blood etc.
Both these sites may ache with dysentery or with urinary anomaly like stone, infection.
If pain is very recent and not very severe, please try paracetamol along with baby gripe mixture couple of doses every 4-5 hours. If not relieved, please see doctor again, and from your GP, please get referral to specialist.