diff --git a/bbs/write_update.php b/bbs/write_update.php index 4273cf950..1f6e151a8 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -259,7 +259,7 @@ if ($w == '' || $w == 'r') { } $sql = " insert into $write_table - set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table sq) ") . ", + set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table as sq) ") . ", wr_reply = '$wr_reply', wr_comment = 0, ca_name = '$ca_name',