$row = mysql_fetch_array = mysql_query("select mog from dle_users where name = '$login'");
$row = mysql_fetch_array(mysql_query('SELECT `mog` FROM `dle_users` WHERE `name`="' . $login . '"'));
// в $row[0] будет лежать значение <b>mog</b> первой строки таблицы
$result = mysql_query('SELECT `mog` FROM `dle_users` WHERE `name`="' . $login . '"');
while ($row = mysql_fetch_array($result))
echo $row[0];