I would try turning on all debugging/logging in the AOLserver config file and then restarting. The goal would be to get the actual SQL to print to the logs. This would help the debugging process;) Add all of the following to your AOLserver config file:
# if debug is false, all debugging will be turned off
set debug true
ns_section ns/parameters
ns_param debug $debug
ns_section ns/server/${server}/tcl
ns_param debug $debug
ns_section ns/server/${server}/adp
ns_param enabledebug $debug ;# Allow Tclpro debugging with "?debug"
# Do this for each ns/db/pool declared
ns_section ns/db/pool/pool1
ns_param verbose $debug
ns_param logsqlerrors $debug
This should give ya more clues to work with;)