diff --git a/includes/handlers.inc b/includes/handlers.inc index 6c1e887..4fc850b 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -1610,7 +1610,8 @@ class views_join { } $operator = !empty($info['operator']) ? $info['operator'] : 'IN'; - $placeholder = '( ' . implode(', ', array_keys($arguments)) . ' )'; + $value_count = count($info['value']); + $placeholder = '( ' . implode(', ', array_slice(array_keys($arguments), count($arguments) - $value_count, $value_count)) . ' )'; } else { // With a single value, the '=' operator is implicit.