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 12 at /home/shef/vestnik.isras.ru/html/dreamedit/includes/class.Persons.php line 122
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 12
    [query] => SELECT p.id,
	    CONCAT(p.surname,' ',p.name,' ',p.fname) AS fullname,
	    CONCAT(p.surname,' ',substring(p.name,1,1),'.',substring(p.fname,1,1),'.') AS fioshort,
	    p.rewards,p.about,p.ruk,p.usp,o.page_status AS invis, CONCAT('',mail1,'',' | ', tel1) AS contact,
	    CONCAT('',mail1,'') AS email,
	    d.text AS dolj, IF(chlen='','',CONCAT(chlen,',')) AS chlen, s.full AS us, z.full AS uz, o.page_name AS otdel,
	    p.id_podr AS otdelid,p.picsmall,p.picbig,p.year_institute,
	    CONCAT(year1,' - ',year_institute,' γγ.') AS dates, work
	    FROM isras2015.persona AS p
            LEFT OUTER JOIN isras2015.doljn AS d ON d.id=p.dolj
	    LEFT OUTER JOIN isras2015.stepen AS s ON s.id=p.us
	    LEFT OUTER JOIN isras2015.zvanie AS z ON z.id=p.uz  INNER JOIN isras2015.adm_pages AS o ON o.page_id = p.id_podr   WHERE p.id=
    [context] => /home/shef/vestnik.isras.ru/html/dreamedit/includes/class.Persons.php line 122
)