menu::get_children() died with message:
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 'JOIN tbl_text_props AS child_props ON child.t_id = child_props.tp_text_id
LEFT' at line 7
SELECT
child.t_name,
child.t_id
FROM
tbl_texts AS child
JOIN tbl_texts AS parent ON parent.t_id =
LEFT JOIN tbl_text_props AS child_props ON child.t_id = child_props.tp_text_id
LEFT JOIN tbl_text_props AS parent_props ON parent.t_id = parent_props.tp_text_id
WHERE
child.t_left BETWEEN parent.t_left AND parent.t_right AND
child.t_level = parent.t_level + 1 AND
(parent_props.tp_container = 0 OR parent_props.tp_container IS NULL) AND
(child_props.tp_visible = 1 OR child_props.tp_visible IS NULL) AND
child.t_id <>