echo '<table border="1">';
$i=0;
foreach($users as $q) {
if($i%2==0)
{
echo '<tr>';
}
echo '<td>';
echo get_avatar( $q->ID, 50 );
echo get_the_author_meta('display_name', $q->ID);
echo '</td>';
if($i%2==0)
{
echo '<tr>';
}
$i++;
}
echo '</table>';