select name, value from ttracker_options where package_id = :package_id and function = 'priority' select name, value from ttracker_options where package_id = :package_id and function = 'severity' tt.creation_user = $user_id wc.state = 'created' wc.state = 'active' wc.state = 'suspended' wc.state = 'canceled' wc.state = 'finished'