fixes #3826: no more sql errors when trying to search for environments (also domains, operatingsystems, and models)
(cherry picked from commit 145db8634df9fbc3ffb51b80093809c5aecd0f6e)
fixes #3826: no more sql errors when trying to search for environments (also domains, operatingsystems, and models)
(cherry picked from commit 145db8634df9fbc3ffb51b80093809c5aecd0f6e)