Fix from TheJason for duplicate entries when cats are specified.

git-svn-id: http://svn.automattic.com/wordpress/trunk@756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-12 09:35:41 +00:00
parent bc5519d97b
commit 72135edb2b

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";