hi.. you are having pain in the iliac fossa
on both the sides.. that you are saying as the pain in the ovaries.. you have seen the gynaecologist also.. probably they are thinking in the lines of pelvic inflammtaory disease, which is infection of uterine endometrium, tubes and cul de sac.. you are having yellow discharge and pain strongly suggest pelvic inflammatory disease
.. and it should be treated with antibiotics which covers both aerobic and anaerobic organisms like tetracyclines, metronidazole
.. if you are sexually active both the partners should be treated simultaneously.. you have doubt about the ovarian infection/cancer.. that can be diagnosed only with certain investigation.. like Ca 125 levels, ultrasound examination, laparoscopy
.. see your gynaecologist and go accordingly.. all the very best..