A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Blog_model.php

Line Number: 82

Backtrace:

File: /home/setnew/public_html/app/models/Blog_model.php
Line: 82
Function: _error_handler

File: /home/setnew/public_html/app/controllers/Blog.php
Line: 192
Function: single

File: /home/setnew/public_html/index.php
Line: 341
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/setnew/public_html/sys/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/setnew/public_html/app/models/Common_model.php
Line: 289
Function: query

File: /home/setnew/public_html/app/models/Blog_model.php
Line: 40
Function: get_table

File: /home/setnew/public_html/app/controllers/Blog.php
Line: 193
Function: get_comments

File: /home/setnew/public_html/index.php
Line: 341
Function: require_once

Database Error

A Database Error Occurred

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 'AND blog_comments.comment_approved = 1 ' at line 4

SELECT blog_comments.*, DATE_FORMAT(blog_comments.comment_date,'%Y/%m/%d') AS published FROM blog_comments WHERE blog_comments.comment_post_ID = AND blog_comments.comment_approved = 1 ORDER BY blog_comments.comment_date DESC

Filename: models/Common_model.php

Line Number: 289