--- int_meta.module	2009-01-25 08:52:22.000000000 +1100
+++ int_meta.module	2010-02-05 12:47:40.000000000 +1100
@@ -338,7 +338,7 @@ function int_meta_load_tags($type='') {
 	$args[] = $type;
 	
 	$query .= " ORDER BY type ASC, field ASC, name ASC";
-	$count = "SELECT COUNT(*)" . $query;
+	$count = "SELECT COUNT(*) FROM {int_meta_fields} GROUP BY type HAVING " . $types;
 	if (db_result(db_query($count, $args)) > 0) {
 		$query = "SELECT field, type, COALESCE(name, field) AS name, combine, status" . $query;
 		$result = db_query($query, $args);
