diff --git a/handlers/views_handler_relationship.inc b/handlers/views_handler_relationship.inc
index 9e23841..341350b 100644
--- a/handlers/views_handler_relationship.inc
+++ b/handlers/views_handler_relationship.inc
@@ -124,6 +124,13 @@ class views_handler_relationship extends views_handler {
 
     $this->alias = $this->query->add_relationship($alias, $join, $this->definition['base'], $this->relationship);
   }
+
+  /**
+   * You can't groupby a relationship.
+   */
+  function use_group_by() {
+    return FALSE;
+  }
 }
 
 /**
diff --git a/includes/handlers.inc b/includes/handlers.inc
index cd0b054..838c71a 100644
--- a/includes/handlers.inc
+++ b/includes/handlers.inc
@@ -328,6 +328,12 @@ class views_handler extends views_object {
   function options_submit(&$form, &$form_state) { }
 
   /**
+   * Provides the handler some groupby.
+   */
+  function use_group_by() {
+    return TRUE;
+  }
+  /**
    * Provide a form for groupby settings.
    */
   function groupby_form(&$form, &$form_state) {
