![]() |
sql problem (sorta! :))
Code:
SELECT MAX(thread.title) as ttitle,MAX(thread.dateline) as dateline,MAX(thread.threadid) as threadid,MAX(thread.replycount) as comments,MAX(thread.lastpost) as lastpost,forum.forumid,forum.title,forum.description,forum.parentid FROM thread But all subsequent forums that it returns(still in the correct order of latest "thread"), it returns the first thread of that forum, not the latest. I can do it with a sub-select, but mysql doesnt support that. Any thoughts? |
Okay, looking through my code, i see my max() is wrong.
Max returns the thread title that has the "highest" name, ie, starts with a W/X/Y/Z.. Which is _not_ what i want :) I had it working before, but there was a SQL query per entry, which added around 24 queries per page, which i dont want to do :( Any ideas? :D |
All times are GMT. The time now is 11:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|