diff --git a/code/tasks/MisdirectionHistoricalLinkMappingTask.php b/code/tasks/MisdirectionHistoricalLinkMappingTask.php index 268afc1..219ba38 100644 --- a/code/tasks/MisdirectionHistoricalLinkMappingTask.php +++ b/code/tasks/MisdirectionHistoricalLinkMappingTask.php @@ -135,9 +135,7 @@ protected function addRecord($record) { // This is only used retain the latest version of the record. - DB::prepared_query('REPLACE INTO ?(?) VALUES(?, ?, ?, ?, ?);', array( - $this->replayTable, - $this->replaceColumnString, + DB::prepared_query("REPLACE INTO {$this->replayTable}({$this->replaceColumnString}) VALUES(?, ?, ?, ?, ?);", array( $record['RecordID'], $record['ID'], $record['ParentID'],