データベースへ要求できません(003)
SELECT cm.*,pm.*,tp.URL, LENGTH(node_path) - LENGTH(REPLACE(node_path,".","")) -2 AS depth FROM カテゴリマスタ as cm LEFT JOIN プログラム名マスタ as pm ON cm.type_div = pm.prg_id and cm.uid = pm.uid LEFT JOIN カテゴリ登録 as ce ON cm.uid = ce.uid and cm.node_id = ce.node_id LEFT JOIN トピックス as tp ON tp.uid = cm.uid and tp.oid = ce.tid WHERE cm.uid = "384" AND cm.type_div="1" AND cm.node_id = REPLACE(node_path, ".", "") GROUP BY cm.node_id ORDER BY cm.skey