I have the following query
<?php
$returnedproducts = explode(',',$result['Product']);
$get = $db->prepare("SELECT * FROM Products WHERE Id IN (' . implode(",", :returned) . ')'");
$get->bindParam(':returned', $returnedproducts);
$get->execute();
$results = $get ->fetchAll();
?>
Product in the database is stored like 1,2,3,4
However I am getting an error PDO::prepare() expects parameter 2 to be array
How can I adapt my returned variable products to achieve this