diff --git a/phpBB/includes/functions_search.php b/phpBB/includes/functions_search.php index 3937b6617c..403f09394e 100644 --- a/phpBB/includes/functions_search.php +++ b/phpBB/includes/functions_search.php @@ -240,7 +240,7 @@ function add_search_words($mode, $post_id, $post_text, $post_title = '') if ( $match_sql != '' ) { - $sql = "INSERT IGNORE INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match) + $sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match) SELECT $post_id, word_id, $title_match FROM " . SEARCH_WORD_TABLE . " WHERE word_text IN ($match_sql)";