Warning: Invalid argument supplied for foreach() in /srv/sata/projects/carsmoto.ru/public_html/packages/user/blog.php on line 34

Notice: Undefined variable: post in /srv/sata/projects/carsmoto.ru/public_html/packages/user/blog.php on line 48

Fatal error: Uncaught exception 'Exception' with message 'Ошибка выполнения SQL-запроса: select bp.*, b.name as bname, b.alias as balias from `__cm__blog_post` bp, `__cm__blog` b where bp.`blog_id` = 1 and bp.`blog_id`=b.`id` and bp.`id` != order by rand() limit 4 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 'order by rand() limit 4' at line 5' in /srv/sata/projects/carsmoto.ru/public_html/core/db.php:143 Stack trace: #0 /srv/sata/projects/carsmoto.ru/public_html/core/db.php(40): DB->query('select?????????...') #1 /srv/sata/projects/carsmoto.ru/public_html/core/model.php(3020): DB->select('select?????????...', Array) #2 /srv/sata/projects/carsmoto.ru/public_html/packages/user/blog.php(48): modelBlog->getBlogPostAlso(Array) #3 /srv/sata/projects/carsmoto.ru/public_html/core/core.php(66): Blog->__index(Array) #4 /srv/sata/projects/carsmoto.ru/public_ht in /srv/sata/projects/carsmoto.ru/public_html/core/db.php on line 143