The organism was still sensitive to Niftas, the antibiotic you took, so the right medicine was likely chosen the first time. Symptoms lingering right after finishing a course don't necessarily mean the treatment failed. Frequent urination with only partial relief and a strong smell can also come from irritation left behind by the infection, or from a fresh infection picking up where the first one left off.
Next Steps
Ask your gynaecologist for a repeat urine routine and culture now that the course is finished, to check the infection has actually cleared. If it has and the frequent urination continues, this points more toward an overactive bladder or lingering irritation than ongoing infection.
Health Tips
See a doctor sooner if you develop fever, back or flank pain, or blood in the urine.