So here is the issue. I have a mutliselect called "systemStatus". if Criteria::fromInput() detects an array it should convert from an "=" in the PDO conversion to a IN ().
This code
$query = Criteria::fromInput($this->di,'Nova\Models\Accounts', $this->request->getPost());
$params = $query->getParams()
Generates this
Array
(
[conditions] => [systemStatus] = :systemStatus: AND [deleted] = :deleted:
[bind] => Array
(
[systemStatus] => Array
(
[0] => 5001
[1] => 5002
)
[deleted] => 0
)
)
which is throwing an error because "=" is expecting a string not an array;
PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens