As networx says it is most likely an SQL injection attack. I've written a short article on what they are and how to prevent them here.
As for preventing them now, I'd suggest upgrading your forums as soon as possible. Webwiz forums are up to version 7.97 which includes a lot of security fixes...