public function getFlowUp($id, $where = [])
    {
        $q = ['pid' => $id];
        $res = [];

        while ($q['pid']) {
            $res[] = $q = q_assoc_row($this->getSQL($this->columns, '`t`.`id`="' . $q['pid'] . '"' . ($where ? ' AND ' . implode(' AND ', $where) : NULL) . ''));
        }

        return array_reverse($res);
    }