OK, that got rid of the error message, thanx.
I've added the code to display the name
<?php echo $row_rsMAIL['mlNAME']; ?>
however, this is always displaying the first name in the database what do I need to do to add the relevant name from the database to each email?