$sql="SELECT * FROM message_contact LEFT JOIN pro_details ON message_contact.n_id=pro_details .n_id
WHERE ( message_contact.user1 = '$member_username' OR message_contact.user2 = '$member_username' ) AND cantact_type = 'users'
AND message_contact.new_topic = 'yes' AND delete_by_user1 != '$member_username' AND delete_by_user2 != '$member_username'
order by id asc ";
$sql="SELECT message_contact .*, pro_details.* FROM message_contact LEFT JOIN pro_details ON message_contact.n_id=pro_details .n_id
WHERE ( message_contact.user1 = '$member_username' OR message_contact.user2 = '$member_username' ) AND cantact_type = 'users'
AND message_contact.new_topic = 'yes' AND delete_by_user1 != '$member_username' AND delete_by_user2 != '$member_username'
order by id asc ";