LOS ANGELES — Christian Friedrich was back in the starting lineup after briefly working out of the bullpen. He still couldn’t pitch the Padres to a victory.

The left-hander didn’t factor in the decision, with San Diego losing 7-4 to the Los Angeles Dodgers on Sunday. Friedrich’s winless streak was extended to 12 games since his last victory on June 23. He’s gone 0-8 with a 6.03 ERA in that span.

“I felt really good out there but I definitely didn’t get away with anything,” Friedrich said. “It’s a bit frustrating. I look forward to staying in the rotation.”

Friedrich allowed four runs and six hits in 4 1/3 innings of his first start since Aug. 23. He struck out four and walked three after pitching in relief last week.

The last-place Padres dropped the finale of their nine-game trip and have lost nine of their last 12. They lost the season series (10-6 with three games left) to the NL West-leading Dodgers for the sixth straight year.

“Christian was knocking some of the rust off today, but he battled,” Padres manager Andy Green said. “I thought he executed well several times.”

Kevin Quackenbush (7-5) took the loss in relief, giving up one run and two hits. He walked one.

The Padres scored the tying and go-ahead runs in the fifth. Travis Jankowski reached on a bunt single to the pitcher and Alexi Amarista scored on the throwing error by starter Jose De Leon. Jankowski scored on Yangervis Solarte’s sacrifice fly to put San Diego ahead 4-3.

Solarte hit a two-run homer with two outs in the third, his career high 15th of the season.

De Leon struck out nine while winning his major league debut and pinch-hitter Yasmani Grandal drove in three runs, including a go-ahead single in the fifth inning for the Dodgers.

De Leon became the 15th different starting pitcher — and seventh in seven days — used by Los Angeles this season. The 24-year-old Puerto Rican, recalled a day earlier from Triple-A Oklahoma City, recorded the second-most strikeouts by a Dodgers pitcher in his major league debut.

De Leon (1-0) gave up four runs and six hits in six innings and didn’t issue a walk. The right-hander struck out the side in the sixth.

Kenley Jansen pitched the ninth to earn his 42nd save in 48 chances.

Yasiel Puig hit a three-run homer in the third that put the Dodgers ahead 3-2.

Grandal hit a two-run homer with two outs in the seventh, scoring Puig, who walked, and extending the Dodgers’ lead to 7-4.

Chase Utley’s RBI single tied the game 4-all in the fifth. Grandal followed with a single past diving first baseman Wil Myers that scored Justin Turner, who drew a leadoff walk, for a 5-4 lead.

TRAINER’S ROOM

Padres: INF Alexei Ramirez was released Sunday after being told he wasn’t going to be the team’s everyday shortstop anymore. The 34-year-old veteran hit .240 with five homers and 41 RBIs in 128 games.

UP NEXT

Padres: RHP Edwin Jackson (3-5, 6.26 ERA) opens a three-game home series against Boston. He’s coming off a loss in his last start at Atlanta, where he gave up five runs and seven hits in 2 2/3 innings and walked three in a 7-3 defeat.