Notice: Undefined variable: p in /var/www/user172854/data/www/pmgdnr.ru/include/pages/news.php on line 6

Fatal error: Uncaught [42000] - 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 '-15, 15' at line 4 trace: #0 /var/www/user172854/data/www/pmgdnr.ru/libs/rb.php(1035): RedBeanPHP\Driver\RPDO->runQuery(' SELECT `news`....', Array) #1 /var/www/user172854/data/www/pmgdnr.ru/libs/rb.php(4165): RedBeanPHP\Driver\RPDO->GetAll(' SELECT `news`....', Array) #2 /var/www/user172854/data/www/pmgdnr.ru/libs/rb.php(10662): RedBeanPHP\Adapter\DBAdapter->get(' SELECT `news`....', Array) #3 /var/www/user172854/data/www/pmgdnr.ru/libs/rb.php(11544): RedBeanPHP\Facade::query('get', ' SELECT `news`....', Array) #4 /var/www/user172854/data/www/pmgdnr.ru/include/pages/news.php(25): RedBeanPHP\Facade::getAll(' SELECT `news`....', Array) #5 /var/www/user172854/data/www/pmgdnr.ru/include/inc_content.php(6): require('/var/www/user17...') #6 /var/www/user172854/data/www/pmgdnr.ru/index.php(10): require('/va in /var/www/user172854/data/www/pmgdnr.ru/libs/rb.php on line 768