SQL Error:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where _ec_id= and _lang='' and _st='A' ORDER BY _sort_id ASC, _dt ASC' at line 1
SELECT DISTINCT
(MONTH
(_dt
)) as m,_id,_lang,_name,_dt
FROM where _ec_id
= and _lang
='' and _st
='A'
ORDER BY _sort_id ASC, _dt ASC