Hey all. I have my little forum. It is set up as (this is a stripped down version, but its all thats relevant so i keep it simple)
forum
id | postname | category | comment
1 | Hey | Arrive | 's goin?
2 | Hi | Arrive | hey man
3 | Cya | Leave | good bye
4 | Bye | Leave | ttyl
Now obviously this is going to have a lot more entries in it, its a forum. But for simplicities sake I will keep it...simple
Anyway. What I want to do is select the biggest 'id' from table from each category, but do it all in one query. I don't need the entire row, just the single 'id' value.
I did a search for any posts relevant to this, but nothing helped me, nothing even was over what I am wondering now.
On my forum there are about 9 categories and I already tried to do a separate query for each one and run it thru a while() loop to grab the variable but that don't work, it exceeds the server's 3 second limit. So I need it all done in one little query.
Using the table above, can anyone help?