<div dir="ltr">Hi LORIS team, <br><br>A while ago I faced the following issue in one of the PRs I was working on:<br><div><br></div><div>/////////////////////////////////////////</div><div><br></div>The structure:<br><br>$recruitmentStartDate = $DB->pselectOne(<br>    "SELECT MIN(Date_registered)<br>     FROM candidate<br>    <b> WHERE RegistrationCenterID IN (:Sites)",<br>    array('Sites' => implode(",", array_keys($list_of_sites)))</b><br>);<br><br>Doesn't seem to be working for me. Only the first element of the array $list_of_sites is been passed to the IN SQL clause. Not sure if I'm using correctly this way. For the moment I write it as:<br><br>$recruitmentStartDate = $DB->pselectOne(<br>    "SELECT MIN(Date_registered)<br>     FROM candidate<br>     <b>WHERE RegistrationCenterID IN (" . $sitesString . ")",<br>    array()</b><br>);<br><div><br></div><div>//////////////////////////////////////////////////</div><div><br></div><div><br></div>I'm having the same behavior with the function <b>pselect(string $query, array $params): array</b><br>from the <b>class Database</b>.<br><br>I'm wondering if you could take a look and see if there is a way to pass an array as one of the elements in the <b>$params</b> array? The issue rises when need to do an IN statement as part of the query.<br><br>Cheers,<br>Rolando Acosta (CHU Sainte-Justine)</div>