A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/page.php

Line Number: 93

Database Error

A Database Error Occurred

Error Number: 1064

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 cn_page.category_id in () and cn_page.display=1 ORDER BY `cn_page`.`id` DES' at line 4

SELECT `cn_page`.`id`, `cn_page`.`title`, `cn_menu`.`html_path` FROM (`cn_page`) JOIN `cn_menu` ON `cn_page`.`category_id` = `cn_menu`.`id` WHERE `cn_page`.`id` < and cn_page.category_id in () and cn_page.display=1 ORDER BY `cn_page`.`id` DESC

Filename: D:\wwwroot\btgy\wwwroot\system\database\DB_driver.php

Line Number: 330