The query in the db is not compatible with PostgreSQL
Just enable the module having PostgreSQL as engine
Modify the query removing the quotes
Active
1.0
Code