Can you tell me how to correct my knock-knees?

Find the cause. At 45, you need to find the cause. If it's from collapsed arches, then orthotics may help. If it'f from arthritis, then potentially knee replacements may help realign them. If they are the way you have always been, and they aren't causing you problems, then leaving them alone may be the best option.