MyBB Community Forums

Full Version: Postnum for Group (error)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I’m trying to use what little knowledge I have to count postnum of a specific usergroup. As of now I’m running into an error and unsure why there seems to be two tables in the error message? Obviously something is wrong here but I can’t seem to figure it out. Any help is appreciated. Have not found any support threads similar to this topic.

$count = $db->fetch_field( $db->query( "SELECT COUNT(*) as numberofposts FROM ".TABLE_PREFIX."postnum WHERE `usergroup` = 4"), 'numberofposts' );