Query failed getting max id of messageboard