fix sql query on index page
This commit is contained in:
@@ -106,6 +106,7 @@ wine-users mailing list or the wine newsgroup, for more information visit
|
|||||||
$sQuery = "SELECT appVotes.appId AS appId, COUNT( appVotes.appId ) AS c
|
$sQuery = "SELECT appVotes.appId AS appId, COUNT( appVotes.appId ) AS c
|
||||||
FROM appVotes, appVersion
|
FROM appVotes, appVersion
|
||||||
WHERE appVersion.maintainer_rating = 'Gold'
|
WHERE appVersion.maintainer_rating = 'Gold'
|
||||||
|
AND appVersion.appId = appVotes.appId
|
||||||
GROUP BY appVotes.appId
|
GROUP BY appVotes.appId
|
||||||
ORDER BY c DESC
|
ORDER BY c DESC
|
||||||
LIMIT 10";
|
LIMIT 10";
|
||||||
@@ -136,6 +137,7 @@ while($oRow = mysql_fetch_object($hResult))
|
|||||||
$sQuery = "SELECT appVotes.appId AS appId, COUNT( appVotes.appId ) AS c
|
$sQuery = "SELECT appVotes.appId AS appId, COUNT( appVotes.appId ) AS c
|
||||||
FROM appVotes, appVersion
|
FROM appVotes, appVersion
|
||||||
WHERE appVersion.maintainer_rating = 'Silver'
|
WHERE appVersion.maintainer_rating = 'Silver'
|
||||||
|
AND appVersion.appId = appVotes.appId
|
||||||
GROUP BY appVotes.appId
|
GROUP BY appVotes.appId
|
||||||
ORDER BY c DESC
|
ORDER BY c DESC
|
||||||
LIMIT 10";
|
LIMIT 10";
|
||||||
|
|||||||
Reference in New Issue
Block a user