I think my database got mangled... I get the following error when trying to load my archive page.
Fatal error: MySQLi Error: ( SELECT [prefix]folder
[prefix], [prefix]date
[prefix] FROM [prefix]albums
[prefix] WHERE [prefix]show
[prefix] = 1 AND [prefix]parentid
[prefix] IS NULL AND [prefix]date
[prefix] LIKE '2014-06%' ORDER BY [prefix]date
[prefix] DESC AND [prefix]id
[prefix] != 4 AND [prefix]id
[prefix] != 14 AND [prefix]id
[prefix] != 15 AND [prefix]id
[prefix] != 73 AND [prefix]id
[prefix] != 265 AND [prefix]id
[prefix] != 243 AND [prefix]id
[prefix] != 246 AND [prefix]id
[prefix] != 267 AND [prefix]id
[prefix] != 274 ) failed. MySQLi returned the error 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 id
!= 4 AND id
!= 14 AND id
!= 15 AND id
!= 73 AND id
!= 265 AND `' at line 1 in /gallery/zp-core/functions-db-MySQLi.php on line 78
However this only happens when I'm not logged in. When logged in as admin, the archive page loads fine, everything works fine.
I've tried restoring previous database, but I still get the error. Help!