Fixes #4521
change approach to reset $select only when $table, $shema, $field, or $exclude changed
Merge pull request #5857 from samsonasik/validator-db

Fixes #4521
[#5857] Better logic for resetting select

- Reset the select object whenever any of the various setters are called that
  could modify the behavior of the select.
Merge branch 'hotfix/5857'

close #5857
fixes #4521