I haven't checked the SQL syntax, but here's your code, cleaned up a bit more:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'GTList');
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// pre-cache templates used by all actions
$globaltemplates = array(
'GTLIST'
'GT_listbit
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
eval('$navbar = "' . fetch_template('navbar') . '";');
//########################################################################
$GT = $DB_site->query("SELECT user.userid, user.username, usertextfield.userid, usertextfield.field5 FROM users, usertextfield WHERE user.userid == usertextfield.userid ORDER BY user.username DESC");
while($row=$DB_site->fetch_array($GT))
{
$who = $row['username'];
$gtname = $row['field5'];
eval('$gtbit .= "' . fetch_template('GT_listbit') . '";');
}
eval('print_output("' . fetch_template('GTLIST') . '");');?
?>