--- fbsmp_views_handler_filter_empty_status_attachment.inc	2011-12-28 02:28:12.000000000 -0600
+++ fbsmp_views_handler_filter_empty_status_attachment.inc	2012-01-25 06:38:06.000000000 -0600
@@ -24,11 +24,10 @@
 
       $plugins = fbsmp_get_plugins();
       if (is_array($plugins) && count($plugins) > 0) {
-        $subquery = "$table.type IN (" . db_placeholders(array_keys($plugins), 'text') . ")";
-        $query .= " OR ( $table.type IS NOT NULL AND $subquery )";
+        $query .= " OR ( $table.type IS NOT NULL AND $table.type IN (:plugins) )";
       }
 
-      $this->query->add_where(0, $query, array_keys($plugins));
+      $this->query->add_where(0, $query, array(':plugins' => array_keys($plugins)));
     }
   }
 }
