When moving from a stage site to production, sometimes it’s necessary to update the GUIDs. Doing a quick REPLACE() is an easy way to accomplish this.
UPDATE wp_posts
SET guid = REPLACE(guid, 'http://stage.somesite.com', 'http://www.somesite.com')
WHERE guid LIKE '%http://stage.somesite.com%'