Answer:
Notice that the photosphere actually has a temperature quite close, or even a bit colder, than the Earth's core! However, outside the photosphere there is the Sun's corona, which can reach temperatures as high as 17,000,000 K; this is hotter than the center of the Sun, and is the hottest place in the solar system!