0 AND `banned` = 0 ORDER BY `id` DESC');
while ($pl = mysql_fetch_array($sp)) {
$prc = mysql_fetch_array(
mysql_query(
'SELECT SUM(`2price`) AS `a` , SUM(`1price`) AS `b` FROM `items_users` WHERE `uid` = "' . $pl['id'] . '" AND `delete` < `time_create` LIMIT 1'
)
);
if ($prc['a'] > 0) {
echo $u->getLogin($pl['id']) .
' - - - - - - - - ' . ($prc['a']) . ' (вещи) + ' . $pl['money2'] . ' ЕКР \ ' . ($prc['b'] + $pl['money1']) . ' КР
';
echo '