public function rightJoin($table, $field1, $operator, $field2) {
        array_push($this->_joins, ' RIGHT JOIN ' . $table . ' ON ' . $field1 . ' ' . $operator . ' ' . $field2 . ' ');
    
        return $this;
    }
public function rightJoin($table, $field1, $operator, $field2) {
        array_push($this->_joins, ' RIGHT JOIN ' . $table . ' ON ' . $field1 . ' ' . $operator . ' ' . $field2 . ' ');
    
        return $this;
    }
public function rightJoin ( $ table , $ field1 , $ operator , $ field2 ) { array_push ( $ this -> _joins , ' RIGHT JOIN ' . $ table . ' ON ' . $ field1 . ' ' . $ operator . ' ' . $ field2 . ' ' ) ; return $ this ; }
Right Join Tables

@param   string  $table  Table name
@param   string  $field1  Table.Fieldname
@param   string  $operator Operator
@param   string  $field2  Table.Fieldname

@example rightJoin('users', 'users.id', '=', 'login.id')
Right Join Tables