Добавление записи Katana

Всем доброго времени суток. Пытаюсь создавать записи в таблице на Kohana. Выдает ошибку: Database_Exception [ 1048 ] Вероятно проблема в запросе, в чем может быть ошибка?

Контроллер:

public function action_create()
    {
        $Auto_model = new Model_Auto();
        $marka = $this->request->param('marka');
        $model = $this->request->param('model');
        $color = $this->request->param('color');
        $number = $this->request->param('number');
        $Auto_model -> createAuto($marka, $model, $color, $number);
        $this->template->content = 'Автомобиль был добавлен';       
    }

Модель:

 public function createAuto($marka, $model, $color, $number)
    {
        $results = DB::insert("auto", array("marka", "model", "color", "number"))
            ->values(array($marka, $model, $color, $number));
            
        return $result = $results->execute();
    }

Вьюха:

function createAuto() {
    let marka = document.getElementById('marka').value;
    if(marka === "") {
        alert("Введите марку!");
        return;
    }
    
    let model = document.getElementById('model').value;
        if(model === "") {
        alert("Введите модель");
        return;
    }
        
    let number = document.getElementById('number').value;
        if(number === "") {
        alert("Введите номер!");
        return;
    }

    let color = document.getElementById('color').value;
    if(color=== "") {
        alert("Введите цвет!");
        return;
    }
    
    document.location = `auto/create/${marka}/${model}/${color}/${number}`;
}

Ответы (0 шт):