DALLAS (AP) - J.J. Barea scored 26 points and made the go-ahead layup with 49.9 seconds left as the Dallas Mavericks rallied in the fourth quarter to beat the New York Knicks 91-89 on Wednesday night.
The Mavericks tied the Houston Rockets for eighth place in the Western Conference.
Barea's basket put Dallas ahead 90-89 after the Mavericks trailed by seven points with 8 minutes left.
Carmelo Anthony scored 31 points for New York and Derrick Williams added 15 in his third start of the season with Kristaps Porzingis out with a shoulder injury.
Anthony lost the ball out of bounds with the Knicks trailing by one. Raymond Felton made one free throw with 8.7 seconds left and the Knicks' Langston Galloway missed a long 3-point attempt on the final possession.
(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)