As noted above the sortId column didn't exist in the DB which is why I removed this.