<?
$count_actions = mysqli_result("SELECT COUNT(*) FROM `actions_user` WHERE `id_user` = '$ank[id]'".($user['id']!=$ank['id'] && !isset($moderate_actions)?" AND (`type` = '0' OR `type` = '1' AND `id_ank` = '$user[id]')":NULL)."");
echo "($count_actions)";
?>