Improved security of forum select SQL query.