Database Error

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

SQL Query: SELECT `Editor`.`id`, substring(SPECIAL_REPLACE(substring(Editor.name,1,1)),1,1) as firstname, `Editor`.`name`, `Editor`.`short_name`, `Editor`.`country_short_name`, `Editor`.`url`, `Editor`.`count` FROM `LAA1172977-kfarchive`.`editors` AS `Editor` WHERE 1 = 1 ORDER BY substring(SPECIAL_REPLACE(substring(`Editor`.`name`,1,1)),1,1) ASC, `Editor`.`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(Editor, array)
  • CORE/Cake/Model/Model.php line 3025Model->_readDataSource(string, array)
  • APP/Controller/EditController.php line 26Model->find(string, array)
  • [internal function]EditController->index()
  • CORE/Cake/Controller/Controller.php line 499ReflectionMethod->invokeArgs(EditController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(EditController, CakeRequest)
  • APP/webroot/index.php line 92Dispatcher->dispatch(CakeRequest, CakeResponse)