Throwed error


exception 'Zend_Db_Statement_Exception' with message '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 '-144' at line 1' in /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Zend/Db/Statement/Pdo.php:240
Stack trace:
#0 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Zend/Db/Adapter/Abstract.php(473): Zend_Db_Statement->execute(Array)
#2 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Zend/Db/Adapter/Pdo/Abstract.php(235): Zend_Db_Adapter_Abstract->query('SELECT SQL_CALC...', Array)
#3 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Zend/Db/Adapter/Abstract.php(734): Zend_Db_Adapter_Pdo_Abstract->query('SELECT SQL_CALC...', Array)
#4 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/cms/modules/mod_photogallery2/models/PhotoModel.php(53): Zend_Db_Adapter_Abstract->fetchAll('SELECT SQL_CALC...')
#5 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/cms/modules/mod_photogallery2/models/PhotoModel.php(64): Model_Photo->fetchPhotosItems('( gallery = '3'...', 'i.rank ASC', -144, 48)
#6 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/cms/modules/mod_photogallery2/controllers/viewController.php(94): Model_Photo->fetchGalleryItems('3', -144, 48, 'i.rank ASC')
#7 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Delphi/Cms/Controller/Front.php(390): mod_photogallery2_viewController->indexAction()
#8 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Delphi/Cms/Controller/Front.php(270): Delphi_Cms_Controller_Front->dispatchAction()
#9 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/cms/modules/mod_photogallery2/page.php(10): Delphi_Cms_Controller_Front->dispatch()
#10 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Delphi/Cms/View.php(255): include('/data/8/0/8063c...')
#11 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Delphi/Cms/Controller/Front.php(752): Delphi_Cms_View->parse('cms/modules/mod...', Array)
#12 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/library/Delphi/Cms/Controller/Front.php(694): Delphi_Cms_Controller_Front->dispatchModule(Array)
#13 /data/8/0/8063cf3e-ef28-4a9d-869f-2fe97cba5025/skstrba.sk/sub/maraton/index.php(113): Delphi_Cms_Controller_Front->dispatchBlocks(Array)
#14 {main}