If you do not have access to phpMyAdmin. Create doquery.php with the following and upload to your admin directory. Then run doquery.php from your browser.
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
include_once('./global.php');
cpheader('<title>Run Query</title>');
$runquery = "Your query here";
$DB_site->reporterror = 1;
$DB_site->query($runquery);
print_r('Query successful:<br>');
print_r('<font face="Courier New"> ' . $runquery . '</font><br><br>');
print_r('Do not forget to delete this file.');
cpfooter();
?>