Working locally on MySQL this works fine, where the two session objects are just a small string of numbers.
...
WHERE stars IN (:stars) AND propType IN (:proptype)");
$stmt->execute(array(
':stars' => $_SESSION['starr'],
':proptype' => $_SESSION['proptype']
));
When I put the code to the live server which uses MariaDB 10 it fails and seems to be just bringing back results that have zero for the stars (the first number in the session for stars
If I hard code the sessions into the SQL then it works fine.
Is there some restriction on IN clauses in a prepared statement, googled the hell out of this and cannot find anything.
I'm using prepared statements thus the execute is:
$stmt->execute(array(':star'=>implode(",",$_SESSION['starr']),':proptype' =>implode(",",$_SESSION['proptype'])));