Error Number: 1064
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 'AND (SUBSTRING(`name`,LOCATE('Chapter',`name`)) > 'Chapter 015%') ORDER BY SU...' at line 1
SELECT `id`,`name`,`alias`,`title`,`scanlation`,`is_read`,`date_update`,`ver_renew` FROM `dev_chapter` WHERE `publish` = 0 AND `storyid` = AND (SUBSTRING(`name`,LOCATE('Chapter',`name`)) > 'Chapter 015%') ORDER BY SUBSTRING(`name`,LOCATE('Chapter',`name`)) DESC
Filename: controllers/Story.php
Line Number: 1503