louboumian
10-16-05, 05:35 AM
Hello!
I was trying to install a MOD on my PHPbb forum. The last MYSQL query :
------------------
UPDATE phpbb_posts p, phpbb_users u SET p.user_avatar = u.user_avatar, p.user_avatar_type = u.user_avatar_type WHERE p.poster_id = u.user_id and u.user_avatar != "" and p.user_avatar = "";
------------------
seems to have screwed up the DB, since I get this message on trying to access the forum:
------------------
Could not query forums information
DEBUG MODE
SQL Error : 1054 Unknown column 'p.post_id' in 'on clause'
SELECT f.*, p.post_time, p.post_username, u.username, u.user_id FROM (( phpbb_forums f LEFT JOIN phpbb_posts p ON p.post_id = f.forum_last_post_id ) LEFT JOIN phpbb_users u ON u.user_id = p.poster_id ) ORDER BY f.cat_id, f.forum_order
Line : 167
File : index.php
-------------------------------
Is there a way to reverse this last SQL querry, and if yes, what would be the script?
( I am using PHPmyadmin to launch queries).
Thanks in advance!
LB
I was trying to install a MOD on my PHPbb forum. The last MYSQL query :
------------------
UPDATE phpbb_posts p, phpbb_users u SET p.user_avatar = u.user_avatar, p.user_avatar_type = u.user_avatar_type WHERE p.poster_id = u.user_id and u.user_avatar != "" and p.user_avatar = "";
------------------
seems to have screwed up the DB, since I get this message on trying to access the forum:
------------------
Could not query forums information
DEBUG MODE
SQL Error : 1054 Unknown column 'p.post_id' in 'on clause'
SELECT f.*, p.post_time, p.post_username, u.username, u.user_id FROM (( phpbb_forums f LEFT JOIN phpbb_posts p ON p.post_id = f.forum_last_post_id ) LEFT JOIN phpbb_users u ON u.user_id = p.poster_id ) ORDER BY f.cat_id, f.forum_order
Line : 167
File : index.php
-------------------------------
Is there a way to reverse this last SQL querry, and if yes, what would be the script?
( I am using PHPmyadmin to launch queries).
Thanks in advance!
LB