Updated

Patrick Beverley sank the go-ahead 3-pointer with 34.3 seconds to play and the Houston Rockets escaped with 115-112 victory over the Phoenix Suns on Sunday night.

Dwight Howard scored 25, James Harden 23 and Beverley 20 for the Rockets, who trailed by 10 entering the fourth quarter.

Goran Dragic scored a career-high 35 for the Suns, but missed what would have been the game-tying 3 at the buzzer. Gerald Green added 23 and Markieff Morris 21 for Phoenix.

Beverley, who scored 12 in the fourth, made two free throws that boosted Houston's lead to 113-110 before Dragic scored on a layup to cut it to 113-112 with 14.7 seconds to play.

Donatas Motiejunas sank two free throws with 14.1 seconds left to put Houston up 115-112.