Fix spellcheck functionality for select queries

Closes #3584681

Merge request reports

Loading