Update queries to use root_categories table

This commit is contained in:
DariusIII
2019-03-12 12:25:00 +01:00
parent 2d6b831f48
commit c9ddfde1ac
9 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ try {
$runVar['panes'] = $tRun->getListOfPanes($runVar['constants']);
//totals per category in db, results by parentID
$catcntqry = 'SELECT c.parentid AS parentid, COUNT(r.id) AS count FROM categories c, releases r WHERE r.categories_id = c.id GROUP BY c.parentid';
$catcntqry = 'SELECT c.root_categories_id AS parentid, COUNT(r.id) AS count FROM categories c, releases r WHERE r.categories_id = c.id GROUP BY c.root_categories_id';
//create timers and set to now
$runVar['timers']['timer1'] = $runVar['timers']['timer2'] = $runVar['timers']['timer3'] =