How to get nodes by custom field value using EntityFieldQuery?
The correct code is the following one.

$entities = $nodeQuery-&gt;entityCondition('entity_type', 'node')
  -&gt;entityCondition('bundle', 'article') 
  -&gt;fieldCondition('field_archived','value', '1', '=') 
  -&gt;pager(10)
  -&gt;execute();


Instead of 'field_archived_value' you need to use 'value'.