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 ')) GROUP BY e.`entity_id`' at line 6, query was: SELECT `e`.entity_id FROM `mage_dpc_authors_author_to_product` ap
                  INNER JOIN `mage_catalog_product_entity` e  ON e.entity_id = ap.product_id
                  INNER JOIN `mage_catalog_product_entity_int` e2  ON e2.entity_id = ap.product_id AND e2.attribute_id = 96
                  LEFT JOIN `mage_catalog_product_entity_int` e3  ON e3.entity_id = ap.product_id AND e3.attribute_id = 226
                  LEFT JOIN `mage_catalog_product_entity_int` acting_ed  ON acting_ed.entity_id = ap.product_id AND acting_ed.attribute_id = 2160
                  WHERE e2.value = 1 AND (e3.value=0 OR e3.value IS NULL OR acting_ed.value =1057) AND (ap.author_id IN ()) GROUP BY e.`entity_id`

#0 /var/www/html/releases/20171212144357/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/html/releases/20171212144357/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/html/releases/20171212144357/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/html/releases/20171212144357/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `e`.enti...', Array)
#4 /var/www/html/releases/20171212144357/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `e`.enti...', Array)
#5 /var/www/html/releases/20171212144357/lib/Zend/Db/Adapter/Abstract.php(794): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `e`.enti...', Array)
#6 /var/www/html/releases/20171212144357/app/code/local/PureImagination/Authors/Model/Author.php(51): Zend_Db_Adapter_Abstract->fetchCol('SELECT `e`.enti...')
#7 /var/www/html/releases/20171212144357/app/design/frontend/pi/dramatic/template/authors/profile.phtml(4): PureImagination_Authors_Model_Author->getTitles(NULL)
#8 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/html/r...')
#9 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/pi/dra...')
#10 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#12 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#14 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#15 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#16 /var/www/html/releases/20171212144357/app/design/frontend/pi/dramatic/template/page/1column.phtml(49): Mage_Core_Block_Abstract->getChildHtml('content')
#17 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/html/r...')
#18 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/pi/dra...')
#19 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#21 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /var/www/html/releases/20171212144357/app/code/local/PureImagination/Authors/controllers/ProfileController.php(22): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Controller/Varien/Action.php(418): PureImagination_Authors_ProfileController->ViewAction()
#25 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#26 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#27 /var/www/html/releases/20171212144357/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#28 /var/www/html/releases/20171212144357/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#29 /var/www/html/releases/20171212144357/index.php(88): Mage::run('', 'store')
#30 {main}