$inString = '"' . array_implode('","', $inParams) . '"';
$sql = " ..... in($inString)";
$inArgs = [];
$params = [];
$paramIdx = 0;
foreach($inParams as $value)
{
$q = 'q' . $paramIdx++;
$params[$q] = $value;
$inArg[] =':' . $q;
}
...
$inArgStr = implode(',', $inArg);
$sql = " ... in($inArgStr) ..."
...
$stm = $pdo->prepare($sql);
foreach($params as $k => $v) {
$stm->bindValue($k, $v);
}
...
$stm->execute();
...
Верояно, что где-то просто маленькая ошибка.