I am attempting to query a custom content type called players (machine name) in a Drupal 7 module and it seemed to be working fine up until an hour ago. Nothing has changed on my side but now the 'Select' works, when I remove all the conditions, but when I add a fieldCondition I am getting empty results.
Here is my query:
$query = new EntityFieldQuery;
$query->entityCondition('entity_type', 'node')
->entityCondition('bundle', 'players')
->fieldCondition('field_email_address', 'value', $email_address)
->fieldCondition('field_password', 'value', $password)
->range(0, 1);
$results = $query->execute();
I have verified and reverified the bundle name, each machine name for the fields, and the values being passed in, but when I dump and die the query results, they come up empty.
Any ideas? Thanks!
$query->execute();, normal ? drupal.org/docs/7/creating-custom-modules/howtos/… - Fky