Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php |
— | — | @@ -912,13 +912,13 @@ |
913 | 913 | $options .= ' OFFSET ' . $requestoptions->offset; |
914 | 914 | } |
915 | 915 | $res = $db->query('(SELECT relation_title as title, COUNT(*) as count FROM ' . |
916 | | - $db->tableName('smw_relations') . 'GROUP BY relation_title) UNION ' . |
| 916 | + $db->tableName('smw_relations') . ' GROUP BY relation_title) UNION ' . |
917 | 917 | '(SELECT attribute_title as title, COUNT(*) as count FROM ' . |
918 | | - $db->tableName('smw_attributes') . 'GROUP BY attribute_title) UNION ' . |
| 918 | + $db->tableName('smw_attributes') . ' GROUP BY attribute_title) UNION ' . |
919 | 919 | '(SELECT attribute_title as title, COUNT(*) as count FROM ' . |
920 | | - $db->tableName('smw_longstrings') . 'GROUP BY attribute_title) UNION ' . |
| 920 | + $db->tableName('smw_longstrings') . ' GROUP BY attribute_title) UNION ' . |
921 | 921 | '(SELECT attribute_title as title, COUNT(*) as count FROM ' . |
922 | | - $db->tableName('smw_nary') . 'GROUP BY attribute_title)' . $options, |
| 922 | + $db->tableName('smw_nary') . ' GROUP BY attribute_title)' . $options, |
923 | 923 | 'SMW::getPropertySubjects'); |
924 | 924 | $result = array(); |
925 | 925 | while($row = $db->fetchObject($res)) { |