不是唯一的表/别名:'usertns_group'1066请告诉我你是否发现错误

时间:2009-10-16 19:29:48

标签: sql mysql join mysql-error-1066

下面的代码看起来很长......但是如果你能发现错误,请告诉我..

我没有看到别名'usertns_group'的任何重复,所以我想知道为什么我得到那个错误..

post LEFT JOIN category2 as postcategory2 ON( post.category2_id = postcategory2.category2_id )
 LEFT JOIN category1 as category2category1 ON( postcategory2.category1_id = category2category1.category1_id )
 LEFT JOIN tns_group as category1tns_group ON( category2category1.tns_group_id = category1tns_group.tns_group_id ) 
 LEFT JOIN user as postuser ON( post.user_id = postuser.user_id )
 LEFT JOIN tns_group as usertns_group ON( postuser.tns_group_id = usertns_group.tns_group_id )
 LEFT JOIN status as poststatus ON( post.status_id = poststatus.status_id )
 LEFT JOIN tns_group as posttns_group ON( post.tns_group_id = posttns_group.tns_group_id )

感谢..

1 个答案:

答案 0 :(得分:1)

Maye usertns_group是其中一个表中列的名称吗?