getChilds: 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 'AND et.description IN ("page","selection_page","loginpage")' at line 2
SELECT DISTINCT ell.relation as child FROM elementlink ell INNER JOIN element el ON el.id = ell.relation INNER JOIN elementtype et ON el.elementtype_id = et.id WHERE ell.element_id = AND et.description IN ("page","selection_page","loginpage")