All seems to be ok in my file, have a look below.
settings_button.php code:
<?php
if (!defined('VISIOLIST')) {
die("This file cannot be accessed directly.");
}
$TMPL = $DB->fetch("SELECT *
FROM {$CONF['sql_prefix']}_sites sites, {$CONF['sql_prefix']}_stats stats...