#5989: Translate API call to SQL
Merge pull request #6168 from dotCMS/issue-5989-static-sql

#5989: Translate API call to SQL