A PHP Error was encountered

Severity: Notice

Message: Undefined index: file_num

Filename: controllers/bbs.php

Line Number: 215

A PHP Error was encountered

Severity: Notice

Message: Undefined index: comment_num

Filename: controllers/bbs.php

Line Number: 238

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id

Filename: views/board_view.php

Line Number: 19

Database Error

데이터베이스 오류가 발생하였습니다.

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY `board_id`, `id` DESC LIMIT 1' at line 5

SELECT * FROM (`board2`) WHERE `board_id` = '2' AND `id` < ORDER BY `board_id`, `id` DESC LIMIT 1