select market.id as market_id from market where market.active = 1 and slug = 'new_year's_party_p.html' ERROR: syntax error at or near "s_party_p" LINE 3: where market.active = 1 and slug = 'new_year's_party_p.html... ^