Database Error

Error: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "5444&theme=130" LINE 1: ..." = "ContentDest"."id") WHERE "src_content_id" = '5444&them... ^

SQL Query: SELECT "IsContentView"."id" AS "IsContentView__id", "IsContentView"."src_content_id" AS "IsContentView__src_content_id", "IsContentView"."dest_content_id" AS "IsContentView__dest_content_id", "ContentSrc"."id" AS "ContentSrc__id", "ContentSrc"."parent_id" AS "ContentSrc__parent_id", "ContentSrc"."product_id" AS "ContentSrc__product_id", "ContentSrc"."order" AS "ContentSrc__order", "ContentSrc"."image_presentation_id" AS "ContentSrc__image_presentation_id", "ContentSrc"."title" AS "ContentSrc__title", "ContentSrc"."text" AS "ContentSrc__text", "ContentDest"."id" AS "ContentDest__id", "ContentDest"."parent_id" AS "ContentDest__parent_id", "ContentDest"."product_id" AS "ContentDest__product_id", "ContentDest"."order" AS "ContentDest__order", "ContentDest"."image_presentation_id" AS "ContentDest__image_presentation_id", "ContentDest"."title" AS "ContentDest__title", "ContentDest"."text" AS "ContentDest__text" FROM "public"."is_content_view" AS "IsContentView" LEFT JOIN "public"."contents" AS "ContentSrc" ON ("IsContentView"."src_content_id" = "ContentSrc"."id") LEFT JOIN "public"."contents" AS "ContentDest" ON ("IsContentView"."dest_content_id" = "ContentDest"."id") WHERE "src_content_id" = '5444&theme=130' LIMIT 1

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 472PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 438DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 675DboSource->execute(string, array, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 1186DboSource->fetchAll(string, array)
  • CORE/Cake/Model/Model.php line 3038DboSource->read(IsContentView, array)
  • CORE/Cake/Model/Model.php line 3010Model->_readDataSource(string, array)
  • APP/Controller/Component/ContentViewComponent.php line 17Model->find(string, array)
  • APP/Model/Behavior/ContentViewBehavior.php line 17ContentViewComponent->getContentView(string)
  • CORE/Cake/Utility/ObjectCollection.php line 128ContentViewBehavior->beforeFind(Content, array)
  • CORE/Cake/Event/CakeEventManager.php line 243ObjectCollection->trigger(string)
  • CORE/Cake/Model/Model.php line 3091CakeEventManager->dispatch(CakeEvent)
  • CORE/Cake/Model/Model.php line 3005Model->buildQuery(string, array)
  • APP/Controller/ContentsController.php line 41Model->find(string, array)
  • [internal function]ContentsController->view(string)
  • CORE/Cake/Controller/Controller.php line 491ReflectionMethod->invokeArgs(ContentsController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(ContentsController, CakeRequest)
  • APP/webroot/index.php line 108Dispatcher->dispatch(CakeRequest, CakeResponse)