I'm using the Medoo MySQL framework but ran into this issue when using IN within a WHERE statement:
$test = '1,2,3,4';
$count = $database->count("products", [
"AND" => [
"category_id" => $category['id'],
"id" => [$test]
]
]);
The count result should be 4, but I'm getting 1. However:
$count = $database->count("products", [
"AND" => [
"category_id" => $category['id'],
"id" => [1,2,3,4]
]
]);
Gives me the correct result of 4. Any ideas? Thanks in advance!