Why won\'t this work?
while($row = mysql_fetch_array(mysql_db_query(\"WPro\",\"select CONCAT(last,\', \',first) as name,account,(metersort-1) as metersort from \".$co.\"_users where type=\'A\' order by last,first\")))
but this does:
$result=mysql_db_query(\"WPro\",\"select CONCAT(last,\', \',first) as name,account,(metersort-1) as metersort from \".$co.\"_users where type=\'A\' order by last,first\");
while($row = mysql_fetch_array($result))
?