I have created a select list but one of the names has an apostrophe. I when I echo then name it has a backslash in it. How do I fix this?

Here is the partial page list.php
And the result after the selection is: Assignments for Perpetua D\'Souza
PHP Code:
<form name="form" action="list.php" method="get">
<table cellpadding="2">
<tr><td><select name="q">
<option value=""></option>
<?php
//sql1 - finding LSS
include("../connectdb.php");
$sql1 "SELECT * FROM directory WHERE department='Legal Support Services' ORDER BY name";
$result1 mysql_query($sql1) or die("Couldnt execute query: ".mysql_error());
while (
$rows=mysql_fetch_array($result1)) {
echo 
"<option value=\"$rows[name]\">$rows[name]</option>";
}
?>
</select></td><td><input type="image" value="Submit" src="../images/select.jpg" border="0" />
</td></tr>
</table>
</form>
<?php
$var 
$_GET['q'];
$name explode(','$var);

if (
$var == ""){
echo 
"<p>Please select the operator...</p>";
exit;
}
?>
<p class="head">Assignments for <?php echo "$name[1] $name[0]"?></p>
etc...