A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Home.php

Line Number: 142

Backtrace:

File: /home/propraya/news.propanraya.com/application/controllers/Home.php
Line: 142
Function: _error_handler

File: /home/propraya/news.propanraya.com/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/propraya/news.propanraya.com/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/propraya/news.propanraya.com/application/models/Model_related.php
Line: 67
Function: query

File: /home/propraya/news.propanraya.com/application/controllers/Home.php
Line: 142
Function: get_similar

File: /home/propraya/news.propanraya.com/index.php
Line: 316
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1054

Unknown column 'matches' in 'field list'

SELECT t.*, c.slug AS cat_slug FROM ( SELECT *, matches FROM tbl_post WHERE status = 1 ) t LEFT JOIN tbl_mutiple_cat b ON t.post_id = b.post_id LEFT JOIN tbl_category c ON b.cat_id = c.category_id WHERE matches > 1 GROUP BY post_id ORDER BY matches DESC LIMIT 100

Filename: models/Model_related.php

Line Number: 67