postgresql7.1 select user_id, first_names, last_name, email from cc_users where last_visit > now() - '[ad_parameter LastVisitUpdateInterval "" 600] seconds'::interval order by upper(last_name), upper(first_names), email