Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataAPI.php |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | $dbr = wfGetDB( DB_SLAVE ); |
208 | 208 | $queryResult = $dbr->query( "SELECT syntrans_sid FROM {$dc}_syntrans " . |
209 | 209 | "WHERE defined_meaning_id=$definedMeaningId AND expression_id=$expressionId " . |
210 | | - getLatestTransactionRestriction( "{$dc}_syntrans" ) . " LIMIT 1" ); |
| 210 | + ' AND ' . getLatestTransactionRestriction( "{$dc}_syntrans" ) . " LIMIT 1" ); |
211 | 211 | |
212 | 212 | if ( $synonym = $dbr->fetchObject( $queryResult ) ) |
213 | 213 | return $synonym->syntrans_sid; |