Select Entity with condition on node id I am trying to select an Entity with a condition on the node id.
Here's the query I use:

$query = new EntityFieldQuery();
$query-&gt;entityCondition('entity_type', 'node')
    -&gt;entityCondition('bundle', 'event')
    -&gt;propertyCondition('status', NODE_PUBLISHED)
    -&gt;fieldCondition('nid', 'value', $id, '=')
    -&gt;range($page, 1);
$result = $query-&gt;execute();


I get the following error:  


  EntityFieldQueryException: Unknown field: nid in EntityFieldQuery->addFieldCondition()


How can I resolve this issue?
For EFQ, you need to filter on the entity condition column entity_id which is the node id.

$query = new EntityFieldQuery();
$query-&gt;entityCondition('entity_type', 'node')
    -&gt;entityCondition('entity_id', $id)
    -&gt;entityCondition('bundle', 'event')
    -&gt;propertyCondition('status', NODE_PUBLISHED)
    -&gt;range($page, 1);
$result = $query-&gt;execute();