SELECT `content_id` FROM `album_v2_content` WHERE `site_id` = 456 AND `instance_id` = 1 AND `language_id` = 1 AND `parent_id` = AND `is_album` = 0 ORDER BY `name`, `image`
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 `is_album` = 0 ORDER BY `name`, `image`' at line 1