Fixes #44 Forum Permissions module for SMF 2

Changed the query to check which profile (board_permission) is applied to which board