I am doing a search in the DB where the parameters are passed and I use LIKE to search, but the search returns me the error PHP Fatal error: Can not pass parameter 2 by reference
$this->Query = $this->Conn->prepare('select * '.
'from tabela '.
'inner join tabela2 on tabela.pr_status = prstatus.prstatus_status '.
'where :tableColumn like :inputSearchProtocol'
);
$this->Query->bindParam(':tableColumn' ,$this->tableColumn);
$this->Query->bindParam(':inputSearchProtocol' ,'%'.$this->inputSearchProtocol.'%');
The error on the server points to the line with the field '%'. $ this-> inputSearchProtocol. '%'