Problem

You are using an iSeries Database with the com.ibm.as400.access.AS400JDBCDriver driver in your PocketQuery Datasource and your connection string looks like this:

jdbc:as400://as400;prompt=false;translate binary=true;extended metadata=true
CODE

In your SELECT statement you are assigning labels to your columns:

SELECT foo AS "Foo Foo", bar AS "Bar Bar", ...
CODE

The resulting table has different column names than the labels you specified.

Solution

Set "extended metadata" to "false".

https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzahh/javadoc/com/ibm/as400/micro/doc-files/JDBCProperties.html