Hi,
I have a problem with my mysqlquery and thought you may able to help me 🙂
I have a table1 with id,subject,txt,startid,time
all email-posts that belong together have the same startid.
the initial post.id=startid
now my problem is how can i get the subject of the last post if i only have the id from one in the middle.
this is my current query as i need also the first entry:
$query="select t1.subject, first.subject as fsubject from table1 as t1 left join table1 as first on first.ID=t1.startid where t1.id=".$id;
now there need to be an additional left join, but i cant figure it out, may something have to do with gratest or max, but the mysql-manual is a little vague on these commands...