fixes #4456
Merge pull request #4504 from dotCMS/issue-4456-update-getsqlresults-macro

fixes #4456