by Dan Jackson.
I investigated this a bit further using the Moodle Adminer plugin. 'table' is a reserved word in SQL, and as the query does not quote it, a syntax error is being returned. It's possible to work around this error by changing lib/adminlib.php to add backquotes around the $column references in the SQL statement in db_replace() - i.e. change to `$column`. I found this to be on line 6315 of lib/adminlib.php.
Hope this helps,
Dan Jackson (CSD Computer Technician)
Long Road Sixth Form College
Cambridge, UK