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
SELECT *, DATE_FORMAT(date, '%d %b %Y %H:%i') as date_frm FROM mpo_orgsm_docs WHERE pseudo = 'plan_osnovnyh_meroprijatij_na_2019_god' AND id_orgm =