Jes, Sorry, That's the problem.
Thanx.
So, now I'm workin on an alternative. Based on the query you posted earlier. But that doesn't seem to work either.
SQL-query:
DELETE FROM privatemessage WHERE user_ID = '15' AND ID = MAX(ID)
MySQL retourneerde: Invalid use of group function
ID is my autoincrement field.
My question is, wat will be the value of the MAX(ID). Will this be the MAX(ID) available in this table. Or the MAX(ID) from that table but te results are limited by user_ID=15 ?
What goes wrong here?