This is a bad call because you knew you were most likely behind. I'm not gonna go so far as to say you got married to kings. You did have some outs. This is a classic calling station play you made however. Making calls based on pot odds is a dangerous proposition. Not because it's -EV, but more because if you're not careful you start bending the rules a bit. You want them at least slightly in your favor. If you find yourself making calls when the odds are only slightly out of favor, then you will begin to slightly lose a couple BB per hour.

The closer you dance to the edge of the pot odds equation, the higher your variance will be. That's math buddy.