I have an Entity Field Query that has fieldCondition for field_email
->fieldCondition('field_email', 'value', $email , '=');
I have verified that this is the name of the field and I have other entity queries that use this field correctly. However, in this example, Drupal is adding the digit 2 on to the field name as I understand the error returned.
$dup_query1 = new EntityFieldQuery(); $dup_query1->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'fair_participant') ->fieldCondition('field_last_name', 'value', $last_name , '=') ->fieldCondition('field_first_name', 'value', $first_name , '=') ->fieldCondition('field_email', 'value', $email , '='); $fpmatch_fandl_email = $dup_query1->execute();
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_email2.field_email_value' in 'where clause'
Any help is greatly appreciated.