fixes #2160
Merge pull request #2176 from dotCMS/issue-2160-site-search-not-working

fixes #2160
#2141 trim query before add limit mssql