Skip to content

Commit

Permalink
Merge pull request #5 from rixbeck/2.0
Browse files Browse the repository at this point in the history
[BUG] Making 'GROUP BY' complaining valid SQL
  • Loading branch information
jadwigo committed Mar 31, 2015
2 parents 242f38a + 237ceb6 commit 1e77ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function getFullTaxonomy($name = null, $taxonomy = null, $params = null) {

// the normal query
$query = sprintf(
"SELECT COUNT(name) as count, slug, name FROM %s WHERE taxonomytype IN ('%s') GROUP BY name ORDER BY %s",
"SELECT COUNT(name) as count, slug, name FROM %s WHERE taxonomytype IN ('%s') GROUP BY name,slug,sortorder ORDER BY %s",
$tablename,
$name,
$sortorder
Expand Down

0 comments on commit 1e77ca7

Please sign in to comment.