postgresql7.4
select to_char(ese.last_modified, 'YYYY-MM-DD HH24:MI:SS') as last_modified_ansi,
ese.modifying_user,
ese.modifying_ip,
ese.description as comments,
ese.grade as task_grade,
content_revision__is_live(evaluation_id) as is_live
from evaluation_student_evalsx ese
where ese.task_id = :task_id
and ese.party_id = :party_id
order by evaluation__party_name(party_id,task_id), ese.evaluation_id desc