Okay, I think I’m following. 
<?php
error_reporting(-1);
ini_set('display_errors', true);
$resultset = array(
array(1, 'Anthony', 'favourites', '2011-12-25 00:00:00'),
array(1, 'Anthony', 'friends', '2011-12-25 00:00:00'),
array(1, 'Anthony', 'followers', '2011-12-25 00:00:00'),
array(1, 'Anthony', 'following', '2011-12-25 00:00:00'),
array(2, 'TedS', 'sitepoint friends', '2011-12-25 00:00:00'),
array(2, 'TedS', 'blogs', '2011-12-25 00:00:00'),
array(2, 'TedS', 'to-do', '2011-12-25 00:00:00'),
);
$lists = array();
foreach($resultset as $row){
list($id, $name, $list, $date) = $row;
if(false === array_key_exists($id, $lists)){
$lists[ $id ] = array(
'name' => $name,
'lists' => array()
);
}
$lists[ $id ]['lists'][] = array(
'name' => $list,
'created' => $date
);
}
print_r(
$lists
);
That code should create this structure from your resultset…
Array
(
[1] => Array
(
[name] => Anthony
[lists] => Array
(
[0] => Array
(
[name] => favourites
[created] => 2011-12-25 00:00:00
)
[1] => Array
(
[name] => friends
[created] => 2011-12-25 00:00:00
)
[2] => Array
(
[name] => followers
[created] => 2011-12-25 00:00:00
)
[3] => Array
(
[name] => following
[created] => 2011-12-25 00:00:00
)
)
)
[2] => Array
(
[name] => TedS
[lists] => Array
(
[0] => Array
(
[name] => sitepoint friends
[created] => 2011-12-25 00:00:00
)
[1] => Array
(
[name] => blogs
[created] => 2011-12-25 00:00:00
)
[2] => Array
(
[name] => to-do
[created] => 2011-12-25 00:00:00
)
)
)
)
You would then display like this…
<html>
<head>
<title>Demo</title>
</head>
<body>
<ul>
<?php foreach(getListItems() as $id => $user): ?>
<li>
<?php echo $user['name']; ?>
<ul>
<?php foreach($user['lists'] as $list): ?>
<li><?php printf('%s created on %s', $list['name'], $list['created']) ?></li>
<?php endforeach; ?>
</ul>
</li>
<?php endforeach; ?>
</ul>
</body>
</html>
… and finally.
<html>
<head>
<title>Demo</title>
</head>
<body>
<ul>
<li>
Anthony
<ul>
<li>favourites created on 2011-12-25 00:00:00</li>
<li>friends created on 2011-12-25 00:00:00</li>
<li>followers created on 2011-12-25 00:00:00</li>
<li>following created on 2011-12-25 00:00:00</li>
</ul>
</li>
<li>
TedS
<ul>
<li>sitepoint friends created on 2011-12-25 00:00:00</li>
<li>blogs created on 2011-12-25 00:00:00</li>
<li>to-do created on 2011-12-25 00:00:00</li>
</ul>
</li>
</ul>
</body>
</html>