I have a very simple node type set up in drupal, see it here
And I'm trying to get the node id based on the email field (the email is unique to each node, just like the nid). My query looks like this:
$query -> entityCondition('entity_type', 'node')
-> entityCondition('bundle', 'mail_entry')
-> fieldCondition('field_email', 'value', $email);
But drupal is complaining with:
"PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_email0.field_email_value'"
I don't really understand what's wrong.