A PHP Error was encountered

Severity: Notice

Message: Undefined index: last_id

Filename: controllers/comments.php

Line Number: 34

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/wmegbj/domains/sitear.ru/public_html/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 438

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 `id_comment` desc' at line 6

SELECT * FROM (`comments`) WHERE `id_material` = 'php-script-kommentariev' AND `parent_id` = '0' AND `id_comment` < ORDER BY `id_comment` desc

Filename: /home/wmegbj/domains/sitear.ru/public_html/models/comments_model.php

Line Number: 84