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 '-20,20' at line 1 IN FILE: /core/db.php ON LINE:60
#0 /core/db.php(60): PDOStatement->execute()
#1 /app/models/pageModel.php(197): db->pquery('SELECT `ask_pag...', Array)
#2 /app/models/articles.php(92): pageModel->getNewestArticlesWithParentAndLimit('50', '-20,20')
#3 /app/models/articles.php(64): articles->getArticlesWithParent()
#4 /app/models/articles.php(55): articles->getNews()
#5 /app/models/articles.php(36): articles->prepareNews(false)
#6 /core/helpers/FrontPageHelper.php(131): articles->news('50', 'nowosci', 1, 'news', 20, true, true)
#7 /app/page.php(8): FrontPageHelper->_getArticles('50')
#8 /app/page.php(17): page->main()
#9 /core/dispatcher.php(36): page->__call('strona-0', Array)
#10 /core/dispatcher.php(36): page->strona-0()
#11 /core/dispatcher.php(20): dispatcher::loadControllers()
#12 /index.php(25): dispatcher::dispatch()
#13 {main}