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/virtwww/w_socioprognoz-ru_9c35d29e/http/dreamedit/includes/class.Persons.php line 117
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 id,CONCAT(surname,' ',name,' ',fname) AS fio,
		               CONCAT(surname,' ',substring(name,1,1),'.',substring(fname,1,1),'.') AS fioshort,
		               ForSite AS about,status
		               FROM persons
	             WHERE id=
    [context] => /home/virtwww/w_socioprognoz-ru_9c35d29e/http/dreamedit/includes/class.Persons.php line 117
)