Kernel panic

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') WHERE (p.is_public = '1') AND (s.left_index >= 1386) AND (s.right_index <= ...' at line 7
#0 /home/sbkdzihs/public_html/lib/Zend/Db/Statement.php(320): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/sbkdzihs/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/sbkdzihs/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(DI...', Array)
#3 /home/sbkdzihs/public_html/lib/Zend/Db/Table/Abstract.php(1529): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/sbkdzihs/public_html/lib/Zend/Db/Table/Abstract.php(1391): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/sbkdzihs/public_html/app/Modules/Catalog/Model/Products.php(997): Zend_Db_Table_Abstract->fetchRow(Object(Zend_Db_Table_Select))
#6 /home/sbkdzihs/public_html/app/Modules/Catalog/Collection/Category.php(150): Module\Catalog\Model\Products->getProductsInCategory('1386', '1387')
#7 /home/sbkdzihs/public_html/app/Modules/Catalog/Plugins/Category/Category.php(498): Module\Catalog\Collection\Category->getProducts()
#8 [internal function]: Module\Catalog\Plugins\Category\Category::beforeCatalogProductsListRender(Object(League\Event\Event), Object(Module\Catalog\Collection\Category))
#9 /home/sbkdzihs/public_html/lib/League/Event/CallbackListener.php(39): call_user_func_array('Module\\Catalog\\...', Array)
#10 [internal function]: League\Event\CallbackListener->handle(Object(League\Event\Event), Object(Module\Catalog\Collection\Category))
#11 /home/sbkdzihs/public_html/lib/League/Event/Emitter.php(220): call_user_func_array(Array, Array)
#12 /home/sbkdzihs/public_html/lib/League/Event/Emitter.php(176): League\Event\Emitter->invokeListeners('beforeCatalogPr...', Object(League\Event\Event), Array)
#13 /home/sbkdzihs/public_html/app/Modules/Catalog/Controller/ModuleController.php(54): League\Event\Emitter->emit(Object(League\Event\Event), Object(Module\Catalog\Collection\Category))
#14 /home/sbkdzihs/public_html/app/Modules/Index/Controller/IndexController.php(38): Module\Catalog\Controller\ModuleController->indexAction(Object(Zend_Db_Table_Row))
#15 [internal function]: Module\Index\Controller\IndexController->indexAction('catalog/shiny/k...')
#16 /home/sbkdzihs/public_html/lib/League/Route/Strategy/AbstractStrategy.php(55): call_user_func_array(Array, Array)
#17 /home/sbkdzihs/public_html/lib/League/Route/Strategy/UriStrategy.php(16): League\Route\Strategy\AbstractStrategy->invokeController(Array, Array)
#18 /home/sbkdzihs/public_html/lib/League/Route/Dispatcher.php(116): League\Route\Strategy\UriStrategy->dispatch(Array, Array)
#19 /home/sbkdzihs/public_html/lib/League/Route/Dispatcher.php(73): League\Route\Dispatcher->handleFound('Module\\Index\\Co...', Object(League\Route\Strategy\UriStrategy), Array)
#20 /home/sbkdzihs/public_html/index.php(561): League\Route\Dispatcher->dispatch('GET', '/catalog/shiny/...')
#21 {main}