diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php
index 6c0eb1b26bceb46945710ad2768d7a9c69450959..0e0a7ec0df709188d85c743d9629f52f59a86eb7 100644
--- a/include/staff/tickets.inc.php
+++ b/include/staff/tickets.inc.php
@@ -76,6 +76,11 @@ if($status) {
     $qwhere.=' AND status='.db_input(strtolower($status));
 }
 
+if (isset($_REQUEST['ownerId'])) {
+    $qwhere .= ' AND ticket.user_id='.db_input($_REQUEST['ownerId']);
+    $qstr .= '&ownerId='.urlencode($_REQUEST['ownerId']);
+}
+
 //Queues: Overloaded sub-statuses  - you've got to just have faith!
 if($staffId && ($staffId==$thisstaff->getId())) { //My tickets
     $results_type='Assigned Tickets';