error:SELECT DISTINCT a.title, a.id, a.make_available FROM AS a JOIN (SELECT x.en FROM lang_content AS x ) AS y ON y.en = a.id WHERE (a.portal_id=3 OR a.portal_id = 2) AND a.archived=0 AND a.lang_id=450 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 'AS a JOIN (SELECT x.en FROM lang_content AS x ) AS y ON y.en = a.id WHERE (a' at line 1