SQL Error: 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 '' at line 5 at /home/shef/fnisc.ru/html/site_template/cmpl_tmp/magazine_page.html.php line 31
Array
(
    [code] => 1064
    [message] => 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 '' at line 5
    [query] => SELECT
                     m.page_id AS ppp,m.page_name AS journal_name,issn,a.page_name AS number,a.year,CONCAT(m.page_name,'. ¹ ',a.page_name,' ',a.year) AS title
                     FROM adm_article AS a
                     INNER JOIN adm_magazine AS m ON m.page_id=a.journal
                     WHERE a.page_id=
    [context] => /home/shef/fnisc.ru/html/site_template/cmpl_tmp/magazine_page.html.php line 31
)