function primaryResult() {

        $result = $this->db->table( $this->table );
        $primary = $this->db->getPrimary( $this->table );

        if ( is_array( $primary ) ) {

            $this->execute();
            $or = array();

            foreach ( $this->rows as $row ) {

                $and = array();

                foreach ( $primary as $column ) {

                    $and[] = $this->db->is( $column, $row->__get( $column ) );

                }

                $or[] = "( " . implode( " AND ", $and ) . " )";

            }

            return $result->where( implode( " OR ", $or ) );

        }

        return $result->where( $primary, $this->getLocalKeys( $primary ) );

    }