Using addCondition() to make sure the condition reaches the Sphinx query + order by optimization
KMS-3488
Merge pull request #1590 from kaltura/IX-9.19.2-KMS-3488-sql-script-fix

Using addCondition() to make sure the condition reaches the Sphinx query