CRM-14751, deleted contacts visible in search

Fix for bug introduced in 10687 - the where clause doesn't include required ACL SQL from earlier in the script.
----------------------------------------
* CRM-14751: Deleted Contacts Visible
  https://issues.civicrm.org/jira/browse/CRM-14751