Fix assignee_id assignment using a select