postgresql7.1 select template_id, content_item__get_path(template_id,null) as path from cr_templates where template_id in ($in_list)