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 '%???%''%???%''%???%'%'))) AND (storeStatus = '1') ORDER BY planLevel DESC, store' at line 6, query was: SELECT SQL_CALC_FOUND_ROWS Store.*, `Area`.*, `User`.*, `Plan`.*, `Genre`.* FROM `Store` INNER JOIN `Area` ON areaCode=storeArea INNER JOIN `User` ON userCode=storeCode INNER JOIN `Plan` ON planCode=storePlan INNER JOIN `Genre` ON genreCode=storeGenre WHERE (storeArea = '3') AND (storeStatus = '1') AND (storeName LIKE '%???%' OR storeKana LIKE '%???%' OR storeCatch LIKE '%???%' OR storeText LIKE '%???%' OR EXISTS (SELECT `Bound`.* FROM `Bound` INNER JOIN `Station` ON boundStation=stationCode WHERE (boundStore = storeCode) AND (stationName LIKE '%'%???%''%???%''%???%'%'))) AND (storeStatus = '1') ORDER BY planLevel DESC, storeUp DESC LIMIT 20


#0 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT SQL_CALC...', Array)
#3 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Zend_Db_Adapter_Pdo_Abstract->query('SELECT SQL_CALC...', Array)
#4 /apps/venus-rec/Application/Model/Db/Selector.php(50): Zend_Db_Adapter_Abstract->fetchAll('SELECT SQL_CALC...')
#5 /apps/venus-rec/Application/Controller/Public/SearchController.php(141): Application_Model_Db_Selector->fetchRowSet()
#6 /apps/venus-rec/Application/Controller/Public/SearchController.php(30): SearchController->resultAction()
#7 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(516): SearchController->indexAction()
#8 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#9 /apps/venus-rec/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Application_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /apps/venus-rec/Interface/Public.php(123): Zend_Controller_Front->dispatch()
#11 {main}