You need to consult your ENT specialist
for this, as you require a thorough ear examination. There can be a perforation in the ear drum through which the yellow fluid comes out during a bout of infection or there can be fluid inside the eardrum
which is causing you the hearing problem. Both of which requires a clinical examination.
Dr. Naveen Kumar