SELECT u.*, COALESCE(SUM(o.SUMMA), 0) FROM users as u
LEFT JOIN orders as o ON o.USER_ID = u.ID
GROUP BY u.ID
LIMIT 10
transform: rotate(-45deg);
transform: rotate(-15deg);
$adduser = "`name` = '".$name."', `email` = '".$email."', `pass` = '".md5($pass)."', `phone` = '".$phone."', `key` = '".md5($email.time())."', `date` = '".date('Y-m-d H:i:s')."'";
mysql_query("INSERT INTO users_tmp SET ".$adduser) or die(mysql_error());
$email.time()