New York Knicks forward Michael Beasley (8) and center Kyle O'Quinn (9) block a shot by Detroit Pistons forward Eric Moreland (24) during the first half of an NBA basketball game, Friday, Dec. 22, 2017, in Detroit. (AP Photo/Carlos Osorio)
New York Knicks forward Michael Beasley (8) and center Kyle O'Quinn (9) block a shot by Detroit Pistons forward Eric Moreland (24) during the first half of an NBA basketball game, Friday, Dec. 22, 2017, in Detroit. (AP Photo/Carlos Osorio) Credit: Carlos Osorio

Detroit— Andre Drummond had 18 points and 15 rebounds, and the Detroit Pistons rallied to beat the New York Knicks, 104-101, on Friday night.

Tobias Harris scored 24 points for the Pistons, who won for the fourth time in five games.

The Knicks tied the game with 3:45 left when Drummond was called for goaltending, and Kristaps Porzingis followed with a mid-range jumper to put New York ahead 95-93.

After the teams traded baskets, Tobias Harris missed and Jarrett Jack hit a short jumper to make it 99-95 with 1:48 to play.

Pelicans 111, Magic 97

Orlando, Fla. — DeMarcus Cousins had 26 points, 11 rebounds and six assists, and New Orleans never trailed.

Anthony Davis added 20 points and 11 rebounds, and Jrue Holiday had 24 points for New Orleans.

The loss was the seventh straight for the Magic, who have not led at any point in their last three games.

Jonathon Simmons led the Magic with 22 points. Nikola Vucevic added 21 and Elfrid Payton had 18 points and six assists.

Nets 119, Wizards 84

New York — Rondae Hollis-Jefferson had 21 points and 11 rebounds to lead Brooklyn over Washington.

Caris LeVert scored 17 points, while DeMarre Carroll, Spencer Dinwiddie and Nik Stauskas added 15 apiece to help the Nets snap a four-game losing streak.

Heat 113, Mavericks 101

Miami — Wayne Ellington tied a career high with 28 points, Josh Richardson scored 24 and injury-ravaged Miami never trailed on the way to beating Dallas.

Bucks 109, Hornets 104

Milwaukee— Khris Middleton scored 28 points, Giannis Antetokounmpo had 26 and Milwaukee overcame a late deficit to beat Charlotte.