Turn it off, claim to God to solve it, and smack two times on the back of the camera! I saw this solution at this forum and it works with me!!!
Ok, to my disbelief, the waking of the camera actually solved the focus problem on the Sony DSC-P50. Unbelievable!!