Database 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
(deleted = 0 or deleted is null)' at line 9
Last Query:
SELECT
count(*) as `count`
FROM
`ck1_photos`
WHERE
`enabled` =1
AND
`galleryId` =
AND
(deleted = 0 or deleted is null)
#0 Database->notify() called at [/var/app/current/includes/classes/class.database.php:104] #1 Database->query(SELECT count(*) as `count` FROM `ck1_photos` WHERE `enabled` =1 AND `galleryId` = AND (deleted = 0 or deleted is null)) called at [/var/app/current/includes/classes/class.objects.php:1640] #2 SpecialGallery->getTotalGalleryPhotos() called at [/var/app/current/special-galleries/gallery.php:32]