postgresql7.1
creation_date < now() - (:registration_before_days || ' days')::interval
creation_date >= now() - (:registration_after_days || ' days')::interval
last_visit < now() - (:last_visit_before_days || ' days')::interval
last_visit >= now() - (:last_visit_after_days || ' days')::interval