Fixes small problem with MS Access

git-svn-id: file:///svn/phpbb/trunk@1400 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-21 01:21:03 +00:00
parent 3f820f64c6
commit d0b2519813

View file

@ -252,8 +252,7 @@ function remove_old_words($post_id)
$sql = "SELECT word_id, COUNT(post_id) AS post_occur_count $sql = "SELECT word_id, COUNT(post_id) AS post_occur_count
FROM " . SEARCH_MATCH_TABLE . " FROM " . SEARCH_MATCH_TABLE . "
WHERE word_id IN ($word_id_sql) WHERE word_id IN ($word_id_sql)
GROUP BY word_id GROUP BY word_id";
ORDER BY post_occur_count DESC";
if( !$result = $db->sql_query($sql) ) if( !$result = $db->sql_query($sql) )
{ {
message_die(GENERAL_ERROR, "Couldn't obtain search word sums", "", __LINE__, __FILE__, $sql); message_die(GENERAL_ERROR, "Couldn't obtain search word sums", "", __LINE__, __FILE__, $sql);