diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index ef8cbb5cf5fa..7e682154722f 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2306,12 +2306,7 @@ public function restWhere(&$values) { $fieldName = "contact_a.{$fieldName}"; } else { - if ($op != 'IN' && !is_numeric($value) && !is_array($value)) { - $fieldName = "{$field['where']}"; - } - else { - $fieldName = "{$field['where']}"; - } + $fieldName = $field['where']; } }