Null values appearing in query; Statement_ID:0 ; Dashboard empty.(InfluxDB)

I am running Grafana thats getting its metric data from InfluxDB - SUSE linux 12.3 environment.
InfluxDB has data of CPU usage. In Grafana, CPU’s are detected but not the values of each CPU, that appears as null.

Grafana Version 5.0.4
InfluxDB version 1.6

Query Inspector shows “statement_ID : 0” error and null values in the extracted data. The same query works in InfluxDB.

Tried a lot of troubleshooting, Config file changes, data type checking. Nothing worked. Need Help!