Postherpetic neuralgia is the most common complication of shingles that causes burning pain in nerves and skin.