See the following:
http://translatewiki.net/w/i.php?title=Special%3ASearch&redirs=0&search=Foobar&ns8=1
On translatewiki (running trunk) a plain search in the searchbar works (in most cases) but going to 'page 2' and/or changing the namespaces being search through breaks:
Database error
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 "". Database returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND page_namespace IN ('8') LIMIT 20' at line 1 (localhost)".
Version: 1.18.x
Severity: critical
URL: http://translatewiki.net/w/i.php?title=Special%3ASearch&redirs=0&search=Foobar&ns8=1