500 Internal Server Error
ERROR: syntax error at or near "and" LINE 1: ...from ext_offer_period op where op.ext_offer_id = and op.dat... ^