BOSTON — The Boston Celtics blew a 17-point second-quarter lead and then rallied from 11 points down in the fourth quarter to beat the New York Knicks 90-86 on Friday night.

It was Boston’s second win over New York in six days, but this one was entirely different than the 114-73 blowout at Madison Square Garden last Sunday.

The Celtics, down 79-68 with 10:32 left, held the Knicks to just two field goals in the final 7:16, ran off 10 points to climb right back in the game and took the lead for good on guard Avery Bradley’s 3-pointer from the right corner with 2:38 left.

The New York offense, which looked good much of the night, fell into watching forward Carmelo Anthony make his own offense down the stretch — and again it failed as the Knicks fell to 6-16.

Forward/center Jared Sullinger led the first-place Celtics (11-14 with seven wins in their last 11 games) with 19 points, but 17 came in the first half. Guard Courtney Lee came off the bench with a season-high 18 points (6-for-8 from the floor, 3-for-3 from 3-point range), Bradley had 13 and forward Brandon Bass 10 points and eight rebounds.

Anthony, 9-for-24 from the floor but only 1-for-8 in the fourth, led New York with 26 points, Forward Andrea Bargnani had 22 and forward Amar’e Stoudemire came off the bench with a season-high 18 points (in a season-high 30 minutes).

Last Sunday in New York, the Celtics jumped to an 18-1 lead that became 38-11 after the first quarter. That basically ended that game. This game started out differently.

In fact, New York led 26-24 late in the first quarter when the Celtics took over. A 19-2 run gave Boston a 17-point lead four minutes into the second quarter. The Knicks went some 6 1/2 minutes between field goals and looked to be out of it.

But the Knicks started chipping away at the lead and seven points by Anthony in the final 2:05 of the half closed the gap to six at the break. They took the lead for the first time since the first quarter on forward Kenyon Martin’s slam with 6:18 left in the third quarter.

Martin was injured and didn’t play in the game in New York. He had eight points and seven rebounds in 24 minutes Friday.

Celtics guard Jordan Crawford and forward Jeff Green, who combined for 39 points last Sunday, totaled just 10 Friday, but Green hit two big shots down the stretch. Crawford was 0-for-8 from the floor.

NOTES: New York G Pablo Prigioni, who had played 362 minutes coming in, was awarded (and made) his first two free throws of the season in the first quarter. … Celtics rookie C/F Kelly Olynyk returned after missing 10 games with a right ankle sprain, coming back with no restrictions but with his conditioning monitored. He entered Friday’s game with 36.5 seconds left in the first quarter. … F Kris Humphries missed his second straight game with a knee injury. … For the Knicks, G Iman Shumpert, who missed a game with a bruised knee, was back and started. PG Raymond Felton is expected to miss three weeks with a hamstring injury, putting Prigioni in the starting lineup. … The Knicks host the Atlanta Hawks on Saturday night and the Celtics are off until they face the Minnesota Timberwolves at home on Monday night.

Pelicans 104, Grizzlies 98

NEW ORLEANS — Guard Eric Gordon scored 17 of his game-high 25 points in the second half and backcourt mate Jrue Holiday added 20 points and 12 assists to lift the New Orleans Pelicans to a 104-98 victory over the Memphis Grizzlies on Friday night at the New Orleans Arena.

Gordon, who made 10 of 12 shots from the field, and Holiday took control after the Pelicans saw a 19-point fourth-quarter lead dwindle to 94-88 with 4:53 left on a 3-pointer by forward Mike Miller with 4:53 left.

Gordon and Holiday combined for eight of the Pelicans’ final 10 points as New Orleans (11-10) won its second consecutive home game before embarking on a five-game road trip.

The Grizzlies (10-12) were led by forward Jon Leuer with 19 points and guard Mike Conley with 18.

The Pelicans used a 27-11 third quarter — holding the Grizzlies without a field goal in the last 6:05 of the quarter — to open an 82-65 lead. Memphis, which began the game by making 14 of 18 shots from the field (77.7 percent), missed 16 of 20 shots in the third as the Pelicans logged their best defensive quarter of the season in holding Memphis to 11 points.

Holiday was the key, playing excellent defense against Conley and adding four points and four assists as the Pelicans shot 52.6 percent from the floor. Gordon contributed 12 third-quarter points.

Trailing 91-73, the Grizzlies used a 15-3 run during an 8:07 stretch of the fourth quarter to cut the New Orleans lead to 94-88 with 4:53 left, but they couldn’t get any closer.

Until the Grizzlies missed their final two 3-point shots of the first half, they were 16 of 23 from the field (69.6 percent), hitting wide-open shots from the perimeter and driving uncontested into the lane.

Conley, with back-to-back 3-pointers, had 10 points and three assists in leading Memphis to a 34-26 first-quarter lead.

By the time Memphis opened a 44-35 lead midway through the second quarter, the Grizzlies had scored 26 points in the paint. But the Pelicans used a 20-10 run during the final 5:45 of the half to take a 55-54 lead at intermission.

The catalysts were Holiday, who hit a 3-pointer from the left wing, and Anderson, who added a long-range jumper and a reverse layup during an 8-0 run. Anderson led New Orleans with 12 first-half points. Holiday added 10 points and seven assists.