Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION LAA1172977-kfarchive.SPECIAL_REPLACE does not exist

SQL Query: SELECT `Label`.`id`, substring(SPECIAL_REPLACE(substring(Label.name,1,1)),1,1) as firstname, `Label`.`name`, `Label`.`short_name`, `Label`.`country_short_name`, `Label`.`url`, `Label`.`count` FROM `LAA1172977-kfarchive`.`labels` AS `Label` WHERE 1 = 1 ORDER BY substring(SPECIAL_REPLACE(substring(`Label`.`name`,1,1)),1,1) ASC, `Label`.`name` ASC

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 502PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 468DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 715DboSource->execute(string, array, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 1226DboSource->fetchAll(string, array)
  • CORE/Cake/Model/Model.php line 3053DboSource->read(Label, array)
  • CORE/Cake/Model/Model.php line 3025Model->_readDataSource(string, array)
  • APP/Controller/LabController.php line 44Model->find(string, array)
  • [internal function]LabController->index()
  • CORE/Cake/Controller/Controller.php line 499ReflectionMethod->invokeArgs(LabController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(LabController, CakeRequest)
  • APP/webroot/index.php line 92Dispatcher->dispatch(CakeRequest, CakeResponse)