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.
2014 amfAR Inspiration Gala [PHOTOS]
Julius Randle breaks leg during NBA debut