" target="_blank" ><?php echo $topic->title; ?> </a></td> <td><?php echo $topic->user->profile->first_name . ' ' . $topic->user->profile->last_name; ?> </a></td> <td><?php echo lang_decode($topic->user->group->name, 'th'); ?> </a></td> <td><?php echo mysql_to_th($topic->created); ?> </a></td> <td style="text-align:center;"><?php $ans = new answer(); echo round($ans->select('user_id,session')->distinct()->where_related('questionaire', 'topic_id', $topic->id)->get()->result_count()); ?> </td> </tr> <?php } ?> </table> <?php echo $topics->pagination(); ?> </div> </div>