Warning (512): SQL Error: 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 'ORDER BY `SubMenu`.`priority` asc' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 522]

Query: SELECT `SubMenu`.`id`, `SubMenu`.`menus_id`, `SubMenu`.`name`, `SubMenu`.`name_bn`, `SubMenu`.`url`, `SubMenu`.`priority` FROM `sub_menus` AS `SubMenu` WHERE menus_id = ORDER BY `SubMenu`.`priority` asc



Fatal error: Call to undefined method stdClass::current() in /home/bb/public_html/app/views/homes/president_sub_menu.thtml on line 197