Fix query error in previous commit - refs #7273