select a.ID, a.l_name, a.f_name, a.s_name, a.title, a.additive, if(a.b_date,Date_Format(a.b_date,'%d.%m.%Y'),null) as b_date, a.b_date_new_s, a.b_day_no, a.b_month_no, if(a.d_date,Date_Format(a.d_date,'%d.%m.%Y'),null) as d_date, a.d_date_new_s, a.d_day_no, a.d_month_no, if(a.gs_date,Date_Format(a.gs_date,'%d.%m.%Y'),null) as gs_date, a.gs_date_new_s, a.gs_day_no, a.gs_month_no, b.cv, a.image, a.b_date_note, a.d_date_note, a.gs_date_note, b.source, b.image_note, a.insert_date, a.update_date, to_days(sysdate()) - to_days(if(ifnull(a.insert_date,'2005-01-01') > ifnull(a.update_date,'2005-01-01'), ifnull(a.insert_date,'2005-01-01'), ifnull(a.update_date,'2005-01-01'))) as past_dayes from gw_persons a left join gw_persons_text b on a.id = b.id where a.id =
USER_ERROR
18.11.2018 3:40:01

Remote IP:54.82.93.116


URI: /pub/home/grwar83/htdocs/html_public/persons/persons.html


Error Number:256

Error Message:1064 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 1

File:/pub/home/grwar83/htdocs/php_script/l_common.php

Line:417

Aborting...