New Orleans went into the game with just 23 wins, tied for the fewest in the Western Conference.
The Hornets fell behind by seven after one period, but came from behind thanks to 23 points and 10 rebounds from Lopez. Anthony Davis added 18 points and 15 boards.
New Orleans has won two games in a row for the first time in more than a month.
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'
Exploding whale video goes viral on Internet