Lubricant is the best solution to deal with squeaky doorknobs. When you apply the lubricant, rotate the doorknob rapidly back and forth to disperse the solution throughout the mechanism.
Don’t use too much lubricant. It can get messy and cause stains.