? entity-1041240.patch
Index: callbacks.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/entity/modules/Attic/callbacks.inc,v
retrieving revision 1.1.2.7
diff -u -p -r1.1.2.7 callbacks.inc
--- callbacks.inc	19 Jan 2011 17:39:51 -0000	1.1.2.7
+++ callbacks.inc	27 Jan 2011 11:18:33 -0000
@@ -648,10 +648,10 @@ function entity_metadata_view_single($en
  */
 function entity_metadata_table_query($entity_type, $property, $value, $limit) {
   $query = new EntityFieldQuery();
+  $condition = is_array($value) ? 'IN' : '=';
   $query->entityCondition('entity_type', $entity_type, '=')
-        ->entityCondition($property, $value, '=')
+        ->propertyCondition($property, $value, $condition)
         ->range(0, $limit);
-
   $result = $query->execute();
   return array_keys($result[$entity_type]);
 }
