$sSql = "SELECT * FROM table1 where field1 > 0 and field2 IN (:buzzGroups) and active = 1";
$arrParams = array('buzzGroups' => $vBuzzGroups);
$stmt = $this->tableGateway->getAdapter()->createStatement($sSql);
$stmt->prepare($sSql);
$data = $stmt->execute($arrParams);
Here is the value of $vBuzzGroups = '10,12';
when I pass only single value then it works but when I try with multiple values..that of comma separated it gives me the error,
Conversion failed when converting the nvarchar value '10,12' to data type int
Is there any one who faced this issue?