query( "SELECT pm.subj, pm.text, pm.user_from, users.name, users.foto FROM " . PREFIX . "_pm as pm, " . PREFIX . "_users as users WHERE pm.user_from=users.name AND pm.user = '$member_id[user_id]' AND pm.folder = 'inbox' ORDER BY pm.pm_read ASC, pm.date DESC LIMIT 0,1"); while($row = $db->get_row()){ $pm++; if ($row['foto'] !== "") $foto = "{$config['http_home_url']}uploads/fotos/{$row['foto']}"; else $foto = "{$config['http_home_url']}templates/{$config['skin']}/images/noavatar.png"; $pm_alert = "