postgresql7.3 SELECT status_id FROM pm_project_status WHERE status_type = 'c' LIMIT 1 SELECT status_id FROM pm_project_status WHERE status_type = 'o' LIMIT 1