diff --git a/bin/sourceJalPdf.php b/bin/sourceJalPdf.php index 5f148c4a..351e4f90 100644 --- a/bin/sourceJalPdf.php +++ b/bin/sourceJalPdf.php @@ -85,7 +85,7 @@ if ($opts->cron) { $fileDate = date('Ymd', filectime($filePath)); $isInsert = false; - $jalSql = "SELECT pdfName FROM octde.jalpdfsed WHERE pdfName=:file"; + $jalSql = "SELECT id, pdfName FROM octde.jalpdfsed WHERE pdfName=:file"; $jalStmt = $conn->prepare($jalSql); $jalStmt->bindValue('file', $fileName); $jalStmt->execute();