Without seeing specifics of which query is causing the problem, it's hard to help with the problem. It could be a modification causing the problem. Try disabling your modifications/plugins and see if you continue to have the performance issues.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php
PHP Code:
define('DISABLE_HOOKS', true);