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 /var/www/html/lib/Cake/Model/Datasource/DboSource.php:502 Stack trace: #0 /var/www/html/lib/Cake/Model/Datasource/DboSource.php(502): PDOStatement->execute(Array) #1 /var/www/html/lib/Cake/Model/Datasource/DboSource.php(468): DboSource->_execute('SELECT `Cause`....', Array) #2 /var/www/html/lib/Cake/Model/Datasource/DboSource.php(715): DboSource->execute('SELECT `Cause`....', Array, Array) #3 /var/www/html/lib/Cake/Model/Datasource/DboSource.php(1226): DboSource->fetchAll('SELECT `Cause`....', Array) #4 /var/www/html/lib/Cake/Model/Model.php(3053): DboSource->read(Object(Cause), Array) #5 /var/www/html/lib/Cake/Model/Model.php(3025): Model->_readDataSource('all', Array) #6 /var/www/html/app/Controller/UserProfilesController.php(260): Model->find('all', Array) #7 [internal function]: UserProfilesController->profile_new('Tess.McGraw') #8 /var/www/html/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs(Object(UserProfilesController), Array) #9 /var/www/html/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest)) #10 /var/www/html/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(UserProfilesController), Object(CakeRequest)) #11 /var/www/html/app/webroot/index.php(168): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #12 {main}