Notice: Use of undefined constant FIELD_LOAD_CURRENT Attempting to use EFQ for the first time. I'm following a couple walk throughs. 

I'm trying to query for the content type banner which has an image field:

&lt;?php
$query = new EntityFieldQuery;
$result = $query
  -&gt;entityCondition('entity_type', 'node')
  -&gt;entityCondition('bundle', 'banner')
  -&gt;propertyCondition('status', 1)
  -&gt;execute();


But after doing so the result of this is an error:

Notice: Use of undefined constant FIELD_LOAD_CURRENT

What is the cause of this particular error?
Discovered that this happens when you're executing this particular function outside of drupal being bootstrapped.

Source: https://drupal.org/node/1286964