postgresql7.1 select title, description, name from imagesx where item_id = :item_id and revision_id = content_item__get_latest_revision(:item_id)