Thread:Project:Support desk/A database query syntax error has occurred. Help please!

Hello, people. I'm from Brazil and my Wiki (wiki.animekey.net) have a problem. Everytime I try to execute some functions(like "protect"), the following messages appears:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "IndexPager::reallyDoQuery (LogPager)". Database returned error "1176: Key 'log_user_type_time' doesn't exist in table 'logging' (localhost)".

I'm a newbie and I don't know what to do. Help, please.

MediaWiki 	1.16.2 PHP 	5.2.13 (apache2handler) MySQL 	5.1.47

Thanks all of you.