STANFORD, Calif. (AP) _ The most important shot Brevin Knight took while leading Stanford to its first victory over UCLA in five seasons was one he missed.

Knight had 19 points and nine assists Saturday as No. 25 Stanford rallied to beat No. 17 UCLA 67-66, snapping a 10-game losing streak against the Bruins.

It was Knight's rebound of his own miss with 15 seconds left that allowed Stanford, which had trailed by 13 points in the first half, to protect its one-point margin of victory.

At the final buzzer, Knight raced for the locker room as fans stormed the court _ engulfing the players and cutting down a net.

``I'm not real big, I didn't want to get caught in that mob. So I sprinted out of there as fast as I could,'' said the 5-foot-10 Knight. ``Usually I stick around, but there were too many people out there.''

David Harbour added 11 points for Stanford (15-5, 8-3 Pac-10), which pulled within one game of the Bruins in the conference standings. J.R. Henderson had 19 points and Kris Johnson added 17 for UCLA (16-6, 9-2).

Stanford, which has won five straight, extended its home winning streak to 14 games.

``It's a great feeling to beat UCLA,'' said Stanford forward Andy Poppink. ``We've been so close to beating them before, and it was just a great feeling to see all the fans on the court.''

Stanford took command with a 16-2 run in the second half that included a phantom UCLA basket and a technical foul on Bruins coach Jim Harrick.

UCLA scored the final five points of the game, but Stanford was able to hold the ball for the final 46 seconds and protect its lead.

``This was a great college game. You have to give Stanford credit because they didn't get rattled and they had that scoring run in the second half,'' Harrick said. ``Knight was especially good. He penetrated consistently and made everything happen for them.''

The Bruins opened a big lead in the first half. UCLA led 15-2 after 5 1/2 minutes, and was up 22-9 halfway through the period. But Stanford stormed back, outscoring the Bruins 22-10 the rest of the half to trail by one at halftime.

Dion Cross hit a 3-pointer 13 seconds into the second half, giving Stanford the lead for the first time since the game's opening minute. The teams then traded baskets until six straight UCLA points gave the Bruins their only lead of the second half, 42-38.

Stanford then went on its 16-2 run, which began with nine straight Cardinal points.

After Knight hit an 18-foot jumper and Poppink dunked on a follow shot to tie the game 42-42, a scramble near midcourt led to the phantom basket.

After the scramble, with Stanford players standing around thinking a TV timeout had been called, UCLA inbounded to a wide-open Jelani McCoy for a dunk. After several discussions, the officials wiped out the basket and UCLA ended the possession with a 35-second shot clock violation.

``I was surprised that I got the ball wide open, but I thought it was real time,'' McCoy said. ``It's just our luck that we didn't get the call.''

Stanford scored the next five points before Henderson finally scored for UCLA. After another basket by Knight, Harrick's technical led to two free throws by Cross and a jumper by Knight that he celebrated by leaping high and punching the air with his right fist.

Harbour's free throw gave Stanford its biggest lead, 54-44, before UCLA began a 13-4 run that pulled the Bruins within a point with 5:09 left.

But Knight then scored six points as Stanford went on an 8-2 run, during which Knight slapped the ball out of Charles O'Bannon's hands as he went in for a layup.

``Brevin, of course, hit some huge shots when the plays had to be made. To us, Brevin is cattle on the ranch and money in the bank,'' said Stanford coach Mike Montgomery.

A free throw by Poppink gave Stanford a 67-61 lead with 1:35 left, but a dunk by McCoy and a three-point play by Henderson pulled the Bruins within a point with 46 seconds left.