getAuthData('id'); $tags = new DB_DataObject_tags(); $tags->query('SELECT tag,COUNT(object_id) as object_id FROM freetags INNER JOIN freetagged_objects ON freetags.id = tag_id WHERE tagger_id = ' . $uid . ' AND tag LIKE \''. $_POST['tags'] . '%\' GROUP BY tag'); $tpl->assignRef('tags', $tags); $tpl->display('taglist.tpl.php');