Re: syntax error in query
Most likely because you are using mySQL 4.1 and 4.1 does not support limit -1.
There is currently no official fix, but the word in general is to substitude the -1 for a very large number. It requires a hacking ability to PHP and TikiWiki sourcecode.
You can search on mysql.com for the list of all the differences between 4.1 and 4.0