postgresql 7.2 select 1 from acs_objects where object_id = :bug_id and (now()::date - last_modified::date) > :time_to_compare_with