postgresql7.1 select item_id, mime_type, content_revision__is_live( revision_id ) as is_live from cr_revisions where revision_id = :revision_id