title: LHS and RHS both keypaths
body: <p>Trying to find active <code>guestCards</code> where a <code>prospectiveTenant</code> matches all of the search queries. Possibilities are <code>firstName</code>, <code>lastName</code>, <code>phoneNumber</code>.</p>
  
  <p><code>prospectiveTenants</code> is a to-many on <code>guestCard</code>.</p>
  
  <p>This code:</p>
  
  <pre><code>NSString *predicateString = [NSString stringWithFormat: @"active=1"];
  if (self.searchHeader.firstNameTextField.text.length &gt; 0) {
      predicateString = [predicateString stringByAppendingFormat:@" AND (ANY prospectiveTenants.firstName CONTAINS[cd] %@)", self.searchHeader.firstNameTextField.text];
  }
  if (self.searchHeader.lastNameTextField.text.length &gt; 0)
  {
      predicateString = [predicateString stringByAppendingFormat:@" AND (ANY prospectiveTenants.lastName CONTAINS[cd] %@)", self.searchHeader.lastNameTextField.text];
  }
  if (self.searchHeader.phoneNumberTextField.text.length &gt; 0)
  {
      predicateString = [predicateString stringByAppendingFormat:@" AND (ANY prospectiveTenants.phone CONTAINS[cd] %@)", self.searchHeader.phoneNumberTextField.text];
  }
  
  NSPredicate *predicate = [NSPredicate predicateWithFormat:predicateString];
  [self.fetchedResultsController.fetchRequest setPredicate:predicate];
  </code></pre>
  
  <p>produces this error</p>
  
  <pre><code>'unimplemented SQL generation for predicate : (ANY prospectiveTenants.lastName CONTAINS[cd] S) (LHS and RHS both keypaths)'
  </code></pre>