Fix from TheJason for duplicate entries when cats are specified.

git-svn-id: https://develop.svn.wordpress.org/trunk@756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-12 09:35:41 +00:00
parent 6a05550bba
commit 6ab398733b

View File

@ -304,6 +304,7 @@ if (isset($user_ID) && ('' != intval($user_ID)))
$where .= " OR post_author = $user_ID AND post_status != 'draft')";
else
$where .= ')';
$where .= " GROUP BY $tableposts.ID";
$request = " SELECT $distinct * FROM $tableposts $join WHERE 1=1".$where." ORDER BY post_$orderby $limits";