Twitter Facebook
Entrar o Registrarse
desc

Si no tienes cuenta Regístrate.

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 '%Fonseca,Nazarethe (Autor), Marcelo del Debbio (Autor), & 8 más% group by Book.' at line 1

SQL Query: SELECT `Book`.*, avg((ifnull(Rating.valor,0))) as avg, concat( if(saga="","",saga), if(orden=0,"", concat (" - ",orden)) ) as ssaga FROM `books` AS `Book` LEFT JOIN `ratings` AS `Rating` ON (`Rating`.`book_id` = `Book`.`id`) WHERE 1 = 1 and autor like%Fonseca,Nazarethe (Autor), Marcelo del Debbio (Autor), & 8 más% group by Book.id limit 0, 20;

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 461PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 427DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 671DboSource->execute(string, array, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 540DboSource->fetchAll(string)
  • [internal function]DboSource->query(string)
  • CORE/Cake/Model/Model.php line 2997call_user_func_array(array, array)
  • APP/Model/Book.php line 147Model->query(string)
  • CORE/Cake/Controller/Component/PaginatorComponent.php line 167Book->paginate(array, null, null, integer, integer, integer, array)
  • CORE/Cake/Controller/Controller.php line 1082PaginatorComponent->paginate(Book, array, array)
  • APP/Controller/BooksController.php line 1102Controller->paginate(Book, array, array)
  • [internal function]BooksController->autor(string)
  • CORE/Cake/Controller/Controller.php line 485ReflectionMethod->invokeArgs(BooksController, array)
  • CORE/Cake/Routing/Dispatcher.php line 186Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 161Dispatcher->_invoke(BooksController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 92Dispatcher->dispatch(CakeRequest, CakeResponse)