When I delete queued campaign emails I get the following error message:

"Fatal error: Call to undefined method EmailMan::create_export_query() in /var/www/advent1.adventassociates.com/htdocs/include/MassUpdate.php on line 154"

I located line 154 of the MassUpdate.php file, but am not familiar with php code and so am unable to find the error. Does anyone else notice anything wrong with this code? (line 154 is the one I tried to fashion an arrow next to).

if(!empty($_REQUEST['uid'])) $_POST['mass'] = explode(',', $_REQUEST['uid']); // coming from listview
elseif(isset($_REQUEST['entire'])) {
if(isset($_SESSION['export_where']) && !empty($_SESSION['export_where'])) { // bug 4679
$where = $_SESSION['export_where'];
} else {
$where = '';
}
if(empty($order_by))$order_by = '';
--> $query = $this->sugarbean->create_export_query($order_by,$where);

$result = $db->query($query,true);

$new_arr = array();
while($val = $db->fetchByAssoc($result,-1,false))
{
array_push($new_arr, $val['id']);
}
$_POST['mass'] = $new_arr;
}