Thanks for the reply. The code results in an error. Team can also be a word. Maybe that is the problem?
Code:
1064
FOUT: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; )' at line 7 SQL=SELECT COUNT( DISTINCT u.id ) FROM nkb57_users u JOIN nkb57_user_usergroup_map g ON g.`user_id` = u.`id` JOIN nkb57_comprofiler ue ON ue.`id` = u.`id` WHERE u.block = 0 AND ue.approved = 1 AND ue.confirmed = 1 AND g.group_id IN (6, 7, 2, 3, 9, 4, 5, 14, 20, 18, 21, 36, 37, 27, 38, 28, 35, 29, 22, 24, 19, 33, 15, 25, 34, 31, 26, 13, 16, 17, 10, 30, 11, 12, 8) AND ( `cb_teams` REGEXP IF( 'comyoo' != '', CONCAT( '[[:<:]]', REPLACE( 'comyoo', '|*|', '|[[:<:]]' ) ), 'NOVALUE' ); )