$touserid = $_SESSION["touserid"]; // ID ของคนที่จะส่งข้อความไปหา
$fromuserid = $_SESSION["UserID"]; // ID ของตัวเอง
$strSQL = "SELECT * FROM haanee_privatemessages INNER JOIN haanee_member ON haanee_privatemessages.touserID = haanee_member.memberID WHERE haanee_privatemessages.fromuserID = '$fromuserid' OR haanee_member.memberID = '$touserid' GROUP BY haanee_privatemessages.touserID ";