1.x means any 1.x, not using the Flux query language, so that includes 1.8.
If you want to use the Flux query language that is only supported by 1.8 and 2.0 so for those you can use 1.8-flux or 2.0-flux.
In fact the error you were getting was probably because it was trying to interpret your query as a Flux query instead of InfluxQL.