$list = DB::query("SELECT e.id, h.title FROM entries as e, heads as h WHERE e.u_id=$who->id and h.id=e.h_id and h.status=1 $top_sql2 ORDER BY id DESC LIMIT 0,9999");
foreach($list as $item){ echo '#'.$item->title.' '; }
?>
$list = DB::query("SELECT e.id, h.title FROM entries as e, heads as h WHERE e.u_id=$who->id and h.id=e.h_id and h.status=1 $top_sql2 ORDER BY id DESC LIMIT 0,9999");
foreach($list as $item){ echo '#'.$item->title.' '; }
?>