Before being nominated to run to fill a vacancy in the U.S. House, David Weprin was a relatively little-known assemblyman from the Queens borough in New York City.

Today, he’s a Democratic scapegoat. He was defeated by Republican businessman Robert Turner in the special election to fill the seat formerly held by the disgraced Anthony Wiener.

While it’s a district that was won by President Barack Obama in 2008, it’s reasonably competitive for Republicans compared with New York City in general — and Weprin was a lousy candidate. Or at least the latter is the excuse that Democrats are leaning on in the wake of an embarrassing loss.

Scapegoating the candidate takes Democrats only so far in this case. Had Obama’s approval ratings been higher, or the economy in better shape — or both — this result might well have been different.

Both candidates, after all, got support from prominent backers, including former President Bill Clinton for Weprin and former Mayor Rudy Giuliani for Turner.

Any way you cut it, this is an embarrassing defeat for the Democrats, no matter how much they seek to throw their candidate’s rep under the Queens bus.