O código é:
$dbh->do("OPTIMIZE TABLE comments, downloads_ip , email_file, inbox, log_activity, log_ban, log_error, log_history, log_ip, log_online, log_referer, maps, members, news, polls, poll_choices, poll_votes, ratings, replays, sentbox, settings, shoutbox, vip_settings");
Mas mesmo tentando otimizar somente uma tabela, o erro ocorre:
$dbh->do("OPTIMIZE TABLE comments");
O erro ocorrido é:
DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''comments' , 'downloads_ip' , 'email_file' , 'inbox' , 'log_activity' , 'log_ban' at line 1 at /home/urameshi/public_html/cgi-bin/cron.cgi line 65.
Vlw...