diff --git includes/entity.controller.inc includes/entity.controller.inc
index b3500b0..09b0d7f 100644
--- includes/entity.controller.inc
+++ includes/entity.controller.inc
@@ -200,6 +200,13 @@ class EntityAPIController extends DrupalDefaultEntityController implements Entit
     // and we need to know if it's empty for this reason to avoid querying the
     // database when all requested entities are loaded from cache.
     $passed_ids = !empty($ids) ? array_flip($ids) : FALSE;
+    if ($ids && !$passed_ids) {
+      ob_start();
+      debug_print_backtrace();
+      var_dump($ids);
+      drupal_set_message('<pre>' . check_plain(ob_get_contents()) . '</pre>');
+      ob_end_clean();
+    }
 
     // Try to load entities from the static cache.
     if (!$revision_id) {
