diff --git a/module/chart/model.php b/module/chart/model.php index 74bc1cb709..b193129840 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -538,7 +538,7 @@ class chartModel extends model $wheres = array(); foreach($filters as $field => $filter) { - $wheres[] = "$field {$filter['operator']} {$filter['value']}"; + $wheres[] = "`$field` {$filter['operator']} {$filter['value']}"; } $whereStr = implode(' and ', $wheres);