Application error: called handler method PDOException: 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 ') AS `Cause__badgeFlag` FROM `gozaround`.`tbl_causes` AS `Cause` WHERE `Cause' at line 1 in /home/website/gozaround/site/lib/Cake/Model/Datasource/DboSource.php:502 Stack trace: #0 /home/website/gozaround/site/lib/Cake/Model/Datasource/DboSource.php(502): PDOStatement->execute(Array) #1 /home/website/gozaround/site/lib/Cake/Model/Datasource/DboSource.php(468): DboSource->_execute('SELECT `Cause`....', Array) #2 /home/website/gozaround/site/lib/Cake/Model/Datasource/DboSource.php(715): DboSource->execute('SELECT `Cause`....', Array, Array) #3 /home/website/gozaround/site/lib/Cake/Model/Datasource/DboSource.php(1226): DboSource->fetchAll('SELECT `Cause`....', Array) #4 /home/website/gozaround/site/lib/Cake/Model/Model.php(3053): DboSource->read(Object(Cause), Array) #5 /home/website/gozaround/site/lib/Cake/Model/Model.php(3025): Model->_readDataSource('all', Array) #6 /home/website/gozaround/site/app/Controller/UserProfilesController.php(136): Model->find('all', Array) #7 [internal function]: UserProfilesController->view('Mercy.Muli') #8 /home/website/gozaround/site/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs(Object(UserProfilesController), Array) #9 /home/website/gozaround/site/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest)) #10 /home/website/gozaround/site/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(UserProfilesController), Object(CakeRequest)) #11 /home/website/gozaround/site/app/webroot/index.php(162): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #12 {main}