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_molodezhnogo_obedinenija_ooo_gazprom_dobycha_nadym_na_2020_god' AND id_orgm =