SELECT realestate.id,node.id,node.name
from realestate,
(SELECT
GROUP_CONCAT(parent.name_en ORDER BY parent.lft DESC) AS name,id
FROM
address AS node JOIN address AS parent
ON node.lft BETWEEN parent.lft AND parent.rgt
WHERE node.lft >={$lft} and node.rgt <={$rgt}
GROUP BY node.name) as node
INNER JOIN users ON id_user = users.id
LEFT JOIN pic ON id_realestate = realestate.id
WHERE node.id = realestate.address_id
我試着修改了幾次,此錯誤信息不會消失「數據庫查詢失敗:列‘身份證’在字段列表不明確」。有沒有關於如何解決這個問題的想法?數據庫查詢失敗:列「身份證」在字段列表是不明確的
提醒我,爲什麼我們要抓住父母的id? – Strawberry