Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php |
— | — | @@ -628,7 +628,7 @@ |
629 | 629 | $result .= '<br /><b>Auxilliary tables used (possibly in multiple copies)</b><br />'; |
630 | 630 | foreach (SMWSQLStore::$m_categorytables as $tablename) { |
631 | 631 | $result .= $tablename . ': '; |
632 | | - $res = $db->select( $tablename, 'cat_name', '', 'SMW::getQueryResult:DEBUG'); |
| 632 | + $res = $db->query( "SELECT cat_name FROM $tablename", 'SMW::getQueryResult:DEBUG'); |
633 | 633 | while ( $row = $db->fetchObject($res) ) { |
634 | 634 | $result .= $row->cat_name . ', '; |
635 | 635 | } |