Error ->
SELECT CONCAT(REPEAT(' ', level - 1), d.m_name) AS lelvel_m_name, func.level
, (select count(*) from usermenu_list e where e.parent_seq = d.seq) child_count
, d.*
, (select include_content from include_list f where d.m_imgurl = f.seq and f.include_category = 'IC01') m_visual
FROM
(
SELECT usermenu_connect_by_parent() AS seq, @level as level
FROM (
SELECT @start_with := 0,
@seq := @start_with,
@level := 0
) vars, usermenu_list
WHERE @seq IS NOT NULL
) func
Join usermenu_list d
ON func.seq = d.seq
and site_code = 'html'
ORDER BY m_ordernum asc