Contact lookup via Email field : <p>I am using <em>Force.com Toolkit for PHP (Version 20.0)</em> to integrate with Salesforce.</p>

<p>I would like to lookup some Contact via the email field and print in on page if the condition is met. Here is the query I used:</p>

<pre><code>SELECT Name, Email, npe01__HomeEmail__c, npe01__WorkEmail__c, npe01__AlternateEmail__c FROM Contact WHERE Email = "a@a.com"
</code></pre>

<p>In <a href="https://workbench.developerforce.com/" rel="noreferrer">Workbench</a> everything works fine, however, when I use the same query in PHP I get the following error:</p>

<blockquote>
  <p>'MALFORMED_QUERY: npe01__AlternateEmail__c FROM Contact WHERE Email="a@a.com"<br>
  ERROR at Row:1:Column:112<br>
  Bind variables only allowed in Apex code'  </p>
</blockquote>

<p>What would be best practice to help me solve this problem?</p>

<p>Thanks!</p>
