exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 20018 Incorrect syntax near ')'. [20018] (severity 15) [(null)]' in /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #2 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #3 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(myLLU_General_Db_Table_Select), Array) #4 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Table/Abstract.php(1575): Zend_Db_Adapter_Pdo_Abstract->query(Object(myLLU_General_Db_Table_Select)) #5 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Table/Abstract.php(1390): Zend_Db_Table_Abstract->_fetch(Object(myLLU_General_Db_Table_Select)) #6 /u1/www/myllu/portal/models/myLLU/General/Model/Abstract.php(266): Zend_Db_Table_Abstract->fetchAll(Object(myLLU_General_Db_Table_Select)) #7 /u1/www/myllu/portal/models/myLLU/SyncAll/Item.php(591): myLLU_General_Model_Abstract::getList(Object(myLLU_General_Db_Table_Select), 'getItemId') #8 /u1/www/myllu/portal/contents/oncampus/controllers/OnCampusController.php(69): myLLU_SyncAll_Item::getAttachmentItemObjsByItemsIds(Array) #9 /u1/www/myllu/portal/contents/oncampus/dispatcher.php(29): OnCampusController->getItems(Array) #10 /u1/www/myllu/portal/models/myLLU/Portal/Portlet.php(294): include('/u1/www/myllu/p...') #11 /u1/www/myllu/portal/portlets/syncall/CollabPortlet.portlet.php(39): myLLU_Portal_Portlet->includeContent() #12 /u1/www/myllu/portal/render/views/php_portlet.php(21): CollabPortlet->display() #13 /u1/www/myllu/portal/models/myLLU/General/MvcLibs/v2/Loader.php(78): require('/u1/www/myllu/p...') #14 /u1/www/myllu/portal/models/myLLU/Portal/Render/BlockSetup.php(160): myLLU_General_MvcLibs_v2_Loader->view('php_portlet', Array, true) #15 /u1/www/myllu/portal/render/controllers/RenderController.php(129): myLLU_Portal_Render_BlockSetup->attachView() #16 /u1/www/myllu/portal/render/index.php(19): RenderController->render() #17 {main} Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000]: General error: 20018 Incorrect syntax near ')'. [20018] (severity 15) [(null)], query was: SELECT itemsView.* FROM itemsView WHERE (parentItemId in ()) AND (itemType in ('image', 'attachment')) AND (itemsView.isDeleted IS NULL OR itemsView.isDeleted = 0)' in /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Pdo.php:235 Stack trace: #0 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #1 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #2 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(myLLU_General_Db_Table_Select), Array) #3 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Table/Abstract.php(1575): Zend_Db_Adapter_Pdo_Abstract->query(Object(myLLU_General_Db_Table_Select)) #4 /opt/rh/php55/root/usr/share/php/vendor/zendframework/zendframework1/library/Zend/Db/Table/Abstract.php(1390): Zend_Db_Table_Abstract->_fetch(Object(myLLU_General_Db_Table_Select)) #5 /u1/www/myllu/portal/models/myLLU/General/Model/Abstract.php(266): Zend_Db_Table_Abstract->fetchAll(Object(myLLU_General_Db_Table_Select)) #6 /u1/www/myllu/portal/models/myLLU/SyncAll/Item.php(591): myLLU_General_Model_Abstract::getList(Object(myLLU_General_Db_Table_Select), 'getItemId') #7 /u1/www/myllu/portal/contents/oncampus/controllers/OnCampusController.php(69): myLLU_SyncAll_Item::getAttachmentItemObjsByItemsIds(Array) #8 /u1/www/myllu/portal/contents/oncampus/dispatcher.php(29): OnCampusController->getItems(Array) #9 /u1/www/myllu/portal/models/myLLU/Portal/Portlet.php(294): include('/u1/www/myllu/p...') #10 /u1/www/myllu/portal/portlets/syncall/CollabPortlet.portlet.php(39): myLLU_Portal_Portlet->includeContent() #11 /u1/www/myllu/portal/render/views/php_portlet.php(21): CollabPortlet->display() #12 /u1/www/myllu/portal/models/myLLU/General/MvcLibs/v2/Loader.php(78): require('/u1/www/myllu/p...') #13 /u1/www/myllu/portal/models/myLLU/Portal/Render/BlockSetup.php(160): myLLU_General_MvcLibs_v2_Loader->view('php_portlet', Array, true) #14 /u1/www/myllu/portal/render/controllers/RenderController.php(129): myLLU_Portal_Render_BlockSetup->attachView() #15 /u1/www/myllu/portal/render/index.php(19): RenderController->render() #16 {main}