Notice (8): Undefined offset: 1 [APP/Controller/AuthorController.php, line 34]
Books Sri Lanka - Sarasavi online bookstore for buying books online
Top

New item has been added to your cart

New item has been added to your cart

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 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 '-12,12' at line 1

SQL Query: SELECT `Book`.`b_id`, `Book`.`status`, `Book`.`b_title`, `Book`.`b_weight`, `Book`.`b_desc`, `Book`.`b_isbn_10`, `Book`.`b_isbn_13`, `Book`.`b_linkname`, `Book`.`b_edition`, `Book`.`b_price`, `Book`.`b_cost`, `Book`.`b_qty`, `Book`.`pub_id`, `Book`.`c_id`, `Book`.`b_added`, `Book`.`b_addby`, `Book`.`b_update`, `Book`.`b_upby`, `Book`.`m_title`, `Book`.`m_keywords`, `Book`.`m_description`, `Book`.`author`, `Book`.`translator`, `Book`.`illustrator`, `Book`.`b_is_img_path`, `Book`.`b_medium`, `Book`.`best_selling`, `Book`.`rating`, `Book`.`isupdate`, `Book`.`sin_name`, `Book`.`isstat`, `Book`.`brand`, `Book`.`ispreorder`, `Book`.`preorder_text`, `Book`.`ispreview`, `Book`.`isskyepub` FROM `sarasavi_new1`.`t_book` AS `Book` WHERE `Book`.`author` = '1' AND `Book`.`b_qty` > 0 ORDER BY `Book`.`b_title` asc LIMIT -12,12

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 459PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 425DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 669DboSource->execute(string, array, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 1080DboSource->fetchAll(string, boolean)
  • CORE/Cake/Model/Model.php line 2674DboSource->read(Book, array)
  • APP/Controller/AppController.php line 261Model->find(string, array)
  • APP/Controller/AuthorController.php line 84AppController->getBookbyPubId(array, string, string, integer)
  • [internal function]AuthorController->index(string)
  • CORE/Cake/Controller/Controller.php line 485ReflectionMethod->invokeArgs(AuthorController, array)
  • CORE/Cake/Routing/Dispatcher.php line 186Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 161Dispatcher->_invoke(AuthorController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 97Dispatcher->dispatch(CakeRequest, CakeResponse)
Compatibility Issue   Compatibility Issue
Your Browser not compatible with some features of our website. So we recommand you to update your browser version or switch to another browser.
Recommended Browsers
Recommended Browsers
//