BUG: mixed column selection with dups is buggy (GH5639)

closes #5639