diff --git a/bootstrap.php b/bootstrap.php
index dac403a93bf55eb1cb14b7e81f0326ee3f50486b..3d7b6a4e9a5ad9c70b3512c63d67fc218e69969c 100644
--- a/bootstrap.php
+++ b/bootstrap.php
@@ -132,6 +132,7 @@ class Bootstrap {
         define('PLUGIN_TABLE', $prefix.'plugin');
         define('SEQUENCE_TABLE', $prefix.'sequence');
         define('TRANSLATION_TABLE', $prefix.'translation');
+        define('QUEUE_TABLE', $prefix.'queue');
 
         define('API_KEY_TABLE',$prefix.'api_key');
         define('TIMEZONE_TABLE',$prefix.'timezone');
diff --git a/include/class.search.php b/include/class.search.php
index b0717c4775bef749464a93c3888b7069b6c08704..c754b40680a98ed4140633aae00754e974c1c834 100644
--- a/include/class.search.php
+++ b/include/class.search.php
@@ -612,7 +612,7 @@ MysqlSearchBackend::register();
 class SavedSearch extends VerySimpleModel {
 
     static $meta = array(
-        'table' => 'ost_queue', # QUEUE_TABLE
+        'table' => QUEUE_TABLE,
         'pk' => array('id'),
         'ordering' => array('sort'),
     );