-1
Not unique table/alias: 'm3'
SELECT count(distinct e.guid) as total
From elgg_entities e JOIN elgg_metadata m ON e.guid = m.entity_guid
JOIN elgg_metadata m2 ON e.guid = m2.entity_guid
JOIN elgg_metadata m3 ON (e.guid = m3.entity_guid)
JOIN elgg_metadata m3 ON (e.guid = m3.entity_guid)
JOIN elgg_metastrings v ON v.id = m.value_id
JOIN elgg_metastrings v2 ON v2.id = m2.value_id
WHERE e.type='object' AND
e.subtype=32 AND
m3.name_id='120908' AND
m3.value_id='1399' AND
m3.name_id='145634' AND
m3.value_id='145635' AND
e.site_guid = 1 AND
((1 = 1) AND e.enabled='yes' OR (e.owner_guid = 2 AND e.enabled='no')) AND
((1 = 1) AND m.enabled='yes' OR (m.owner_guid = 2 AND m.enabled='no')) AND
((1 = 1) and m2.enabled='yes' OR (m2.owner_guid = 2 AND m2.enabled='no'))
查詢中有什麼錯誤?如何解決它。錯誤:非唯一表/別名:MySQL中的'm3'
'elgg_metadata m3'然後'elgg_metadata m3' - 在這裏你去 –