Check you server.tcl startp file in that database pools for this:
verbose on
logsqlerrors on
extendedtableinfo on
Make sure these parameters are set like this for all 3 database pools.
This will hopefully log the information you need to track down the query that is causing the error.