Can you enable the MySQL log in /etc/my.cnf so that MySQL logs all queries? That way you should be able to find out what queries are executed when you try to log into ISPConfig, and what query is causing the problem.
The options to enable logging in my.cnf should be something like this:
general_log_file = /var/log/mysql/mysql.log
general_log = 1