select coalesce(max(order_n) + 1, 1) from cr_item_rels where item_id = :item_id