Gallery | Album Name -

Database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY photo_rank DESC, photo_date ASC' at line 1]
SELECT photo_id, '' AS `photo_code`, photo_caption, false AS `last_child` FROM `ec_gallery_photos` WHERE album_id = ORDER BY photo_rank DESC, photo_date ASC