that's still bringing up the first row from the grps_post table.
came up with this
[sql]SELECT grps.groupid, grps.title, grps.create_date, grps.leaderid AS userid, grps_post.userid AS lastposter, MAX( grps_post.dateline ) AS lastpostdateline, MAX( grps_post.pagetext ) , COUNT( grps_post.userid ) AS replies, MAX( grps_post.postid ) AS postid
FROM grps_post
LEFT JOIN grps ON ( grps_post.groupid = grps.groupid )
GROUP BY grps_post.groupid##, grps_post.postid
ORDER BY grps_post.dateline DESC [/sql]
is that bad sql?
|