ActiveObject problem with quotest on PostgreSQL

Only for one query with stream. This query is called form

For query:

   final Query query1 = Query.select("ID, MEMBER_KEY, TYPE, INPUT_EXCEPTION_ID")
        .where("INPUT_EXCEPTION_ID=?",  getID());

   ao.stream(InputEntity.class, query1, ....

We’ve got:
org.postgresql.util.PSQLException: ERROR: column “input_exception_id” does not exist
[INFO] [talledLocalContainer] Position: 105
[INFO] [talledLocalContainer] at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.stream(EntityManagedActiveObjects.java:166)
[INFO] [talledLocalContainer] at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.stream(TenantAwareActiveObjects.java:316)
[INFO] [talledLocalContainer] at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)…

but with quotes “columname” there is no Error :

    final Query query1 = Query.select("ID, MEMBER_KEY, TYPE, INPUT_EXCEPTION_ID")
        .where(  "\"INPUT_EXCEPTION_ID\"=?", exceptionEntity.getID());

We have more querys similar to this but without error. How is this possible, when do we need to use quotes arround names?