Fix SQL and make listSelectGroupWithId optional
Note the direction of list view movement when the top group item changes