Error while adding datasource for Influx db in Grafana

Below Error occurred by adding a data source in Grafana using Influx DB

“InfluxDB Error: error parsing query: found ON, expected identifier at line 1, char 25”
Settings used are

HTTP Url : http://localhost:8086
Method : direct
No authentication details given, Admin credentials supplied for Influx DB details

Grafana version :
Influx DB version : influxdb_v0.9.0-rc11

You’re using a very old version of InfluxDB. The latest version is 1.5.1. We strongly recommend you upgrade to the most recent version. You can find [installation instructions here](Installing InfluxDB OSS | InfluxDB OSS 1.5 Documentation.