Kyomu
04-02-2002, 03:28 AM
What's wrong with the following SQL query?
SELECT forum.*, forumpermission.canpost, forumpermission.canview
FROM forum
LEFT JOIN forum ON forum.forumid=forumpermission.forumid
WHERE forum.displayorder<>0 AND forum.active=1 AND forum.isnews=1 AND forumpermission.usergroupid='$bbuserinfo[usergroupid]'
ORDER BY forum.parentid,forum.displayorder
I get the error:
Not unique table/alias: 'forum'
My brains are fired... help... =(
SELECT forum.*, forumpermission.canpost, forumpermission.canview
FROM forum
LEFT JOIN forum ON forum.forumid=forumpermission.forumid
WHERE forum.displayorder<>0 AND forum.active=1 AND forum.isnews=1 AND forumpermission.usergroupid='$bbuserinfo[usergroupid]'
ORDER BY forum.parentid,forum.displayorder
I get the error:
Not unique table/alias: 'forum'
My brains are fired... help... =(