LeBron James scored 29 points, Brandon Ingram added 27 and the Los Angeles Lakers rallied from a 19-point deficit midway through the third quarter to defeat the Houston Rockets 111-106 on Thursday night.

The Lakers trailed most of the game and were down 95-88 with 7:49 remaining when they went on a 17-4 run over a six-minute span. James, who scored eight points during the run, gave Los Angeles a 99-97 lead with 4:15 remaining. They would lead by as many as eight in the final minute.

More Images
Los Angeles Lakers' LeBron James, front, drives to the basket as Houston Rockets' Clint Capela defends during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

LeBron James scored 29 points, Brandon Ingram added 27 and the Los Angeles Lakers rallied from a 19-point deficit midway through the third quarter to defeat the Houston Rockets 111-106 on Thursday night.

Los Angeles Lakers' LeBron James (23) shoots over Houston Rockets' James Harden during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

James Harden led Houston with 30 points, 10 rebounds and nine assists before fouling out with 1:24 remaining. It is his 32nd consecutive game where he has scored 30 or more points, overtaking Wilt Chamberlain for the second-longest streak in NBA history. Chamberlain also holds the record at 65 games.

Houston Rockets' Kenneth Faried (35) dunks over Los Angeles Lakers' Brandon Ingram during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston led 32-22 at the end of the first quarter when it ended the period with eight straight points, including back-to-back 3-pointers by Faried and Austin Rivers.

Houston Rockets' James Harden (13) reacts after making a 3-point basket against the Los Angeles Lakers during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston center Clint Capela returned to the lineup for the first time since Jan. 13 and had a double-double. Capela — who had 12 points and 10 rebounds — suffered a right thumb injury against Orlando and missed 15 games.

Los Angeles Lakers' LeBron James yells during the first half of the team's NBA basketball game against the Houston Rockets on Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Lakers: G Mike Muscala missed the game due to a sprained right ankle.

It is Los Angeles' sixth comeback victory this season when trailing by 15 or more at any point.

Los Angeles Lakers' LeBron James, front, drives to the basket as Houston Rockets' Clint Capela defends during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Los Angeles Lakers' LeBron James, front, drives to the basket as Houston Rockets' Clint Capela defends during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

James Harden led Houston with 30 points, 10 rebounds and nine assists before fouling out with 1:24 remaining. It is his 32nd consecutive game where he has scored 30 or more points, overtaking Wilt Chamberlain for the second-longest streak in NBA history. Chamberlain also holds the record at 65 games.

Chris Paul added 23 points before also fouling out.

The Lakers trailed by 19 midway through the third quarter and 86-72 with 3:55 remaining in the period before rallying back. They closed the quarter on a 9-2 run as Kyle Kuzma scored five and James had four to trail 90-83 going into the fourth.

Los Angeles Lakers' LeBron James (23) shoots over Houston Rockets' James Harden during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Los Angeles Lakers' LeBron James (23) shoots over Houston Rockets' James Harden during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston led 32-22 at the end of the first quarter when it ended the period with eight straight points, including back-to-back 3-pointers by Faried and Austin Rivers.

Harden's jumper gave the Rockets a 52-39 advantage with 4:20 remaining before the Lakers went on an 9-0 run. The Rockets would lead 58-52 at halftime.

CAPELA RETURNS

Houston Rockets' Kenneth Faried (35) dunks over Los Angeles Lakers' Brandon Ingram during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston Rockets' Kenneth Faried (35) dunks over Los Angeles Lakers' Brandon Ingram during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston center Clint Capela returned to the lineup for the first time since Jan. 13 and had a double-double. Capela — who had 12 points and 10 rebounds — suffered a right thumb injury against Orlando and missed 15 games.

TIP-INS

Rockets: It is only the fifth loss for Houston in 33 games when it has led after three quarters.

Houston Rockets' James Harden (13) reacts after making a 3-point basket against the Los Angeles Lakers during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Houston Rockets' James Harden (13) reacts after making a 3-point basket against the Los Angeles Lakers during the first half of an NBA basketball game Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Lakers: G Mike Muscala missed the game due to a sprained right ankle.

UP NEXT

Rockets: Travel to the Golden State Warriors on Saturday night.

Lakers: Visit the New Orleans Pelicans on Saturday night.

Follow Joe Reedy at www.twitter.com/joereedy

Los Angeles Lakers' LeBron James yells during the first half of the team's NBA basketball game against the Houston Rockets on Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

Los Angeles Lakers' LeBron James yells during the first half of the team's NBA basketball game against the Houston Rockets on Thursday, Feb. 21, 2019, in Los Angeles. (AP PhotoMarcio Jose Sanchez)

More AP NBA: https://apnews.com/NBA and https://twitter.com/AP_Sports