Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -307,10 +307,10 @@ |
308 | 308 | $property_value = str_replace(' ', '_', $af->filter->property); |
309 | 309 | $property_value = str_replace("'", "\'", $property_value); |
310 | 310 | $sql .= "LEFT OUTER JOIN |
311 | | - (SELECT subject_id, $value_field |
| 311 | + (SELECT s_id, $value_field |
312 | 312 | FROM $property_table_name |
313 | 313 | WHERE $property_field = '$property_value') $property_table_nickname |
314 | | - ON id.smw_id = $property_table_nickname.s_id "; |
| 314 | + ON ids.smw_id = $property_table_nickname.s_id "; |
315 | 315 | } |
316 | 316 | } |
317 | 317 | foreach ($applied_filters as $i => $af) { |