SELECT DISTINCT st.item_id, st.title
FROM elgov_subjectitem as si,
elgov_subjecttitle as st,
elgov_lninalidx as lx
WHERE st.item_id = si.id
AND st.lang_id = 7
AND lx.inode = si.id
AND lx.article_id =
[ MYSQL ERROR ]: SELECT DISTINCT st.item_id, st.title FROM elgov_subjectitem as si, elgov_subjecttitle as st, elgov_lninalidx as lx WHERE st.item_id = si.id AND st.lang_id = 7 AND lx.inode = si.id AND lx.article_id = (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 9 )