select max(layout_elements.sort_key) + 1 from layout_elements where page_id = :page_id and page_column = :page_column