"where" method not work with post variable

Hi,
I’ve an issues with where method. When I run this code it’s all ok and GC shows me the right result (year 2017):

public function word_search() {
$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable(‘listtable’);
$crud->where([
‘years’ => “2017”
]);
$output = $crud->render();
return $this->_example_output($output);
}

Unfortunately when I put a POST variable in the where clause, GC shows me all results and ignore the search:

public function word_search() {
$search=$this->request->getPost(‘search_word’);
$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable(‘listtable’);
$crud->where([
‘years’ => $search
]);
$output = $crud->render();
return $this->_example_output($output);
}

It may have happened to some of you?

Thanks in advance,
Stefano