ok, its returning SELECT * FROM messages WHERE MessageUserID = ORDER BY MessageDate DESC LIMIT 0, 50
so clearly UserID is not being set on the plugin although whne I was echoing the session to make sure it was showing the right user it worked ok
am assuming then that it has to do with the delete function but not sure what I need to do to get it set...