Eric Young scored on shortstop Brandon Crawford's fielding error with two outs in the 16th inning, and the New York Mets outlasted the San Francisco Giants 4-3 in a game that ended early Tuesday morning.

San Francisco Giants mascot Lou Seal watches the game in pajamas in the 15th inning against the New York Mets at AT&T Park

Young singled with one out and stole second. After he advanced to third on Daniel Murphy's groundout, lefty Javier Lopez entered and intentionally walked David Wright.

Crawford couldn't handle pinch-hitter Anthony Recker's grounder, allowing Young to score and handing New York its first win in a game that went at least 15 innings after losing its first three this season.

This one lasted 5 hours, 26 minutes. It was the longest game in time and innings the Giants had played this season.