select title, file, description from cms_photo_files where published = 1 AND album_id =
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 '' at line 1