Jump to content

Recent topics....


MarkW

Recommended Posts

Im referring to the link in the to rightish corner of the page, by 'view unread posts' etc.

 

Used to be a really useful way of seeing new threads but hasnt been working for me for several months. Whwn I try it I always get the SQL error below:

 

Is this the same for everyone, and is there any chance of it being fixed?

 

------------------------------------------------------------------------------

 

could not obtain main information.

 

DEBUG MODE

 

SQL Error : 1054 Unknown column 't.topic_first_post_id' in 'on clause'

 

SELECT t.*, p.poster_id, p.post_username AS last_poster_name, p.post_id, p.post_time, f.forum_name, f.forum_id, u.username AS last_poster, u.user_id AS last_poster_id, u2.username AS first_poster, u2.user_id AS first_poster_id, p2.post_username AS first_poster_name FROM phpbb_topics t, phpbb_posts p LEFT OUTER JOIN phpbb_posts p2 ON p2.post_id = t.topic_first_post_id LEFT OUTER JOIN phpbb_forums f ON p.forum_id = f.forum_id LEFT OUTER JOIN phpbb_users u ON p.poster_id = u.user_id LEFT OUTER JOIN phpbb_users u2 ON u2.user_id = t.topic_poster WHERE t.forum_id NOT IN (14,42,43,44,55) AND p.post_id = t.topic_last_post_id AND FROM_UNIXTIME(p.post_time,'%Y%m%d') - FROM_UNIXTIME(unix_timestamp(NOW()),'%Y%m%d') = 0 ORDER BY t.topic_last_post_id DESC LIMIT 0, 10

 

Line : 135

File : recent.php

Link to comment
Share on other sites

Guest prescience

I think this is on Chris' (Chesterfield's) 'To-Do' list as with a number of other items. Note for Chris, you need a 'Done' pile too :p:p

 

Seriously, if there is anyone out there with phpBB experience, I'm sure if the semantics could be sorted out, he'd be grateful - what do you think Mods, it's a bit cr*p that's it's been this way for so long ;)

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...