SELECT count(id) as cnt FROM dc_deals WHERE (isDOD=1) and (expiration_date_dt<"2000-01-01" OR expiration_date_dt>"2014-04-16")|1054: Unknown column 'isDOD' in 'where clause'