A PHP Error was encountered

Severity: Warning

Message: Attempt to read property "id" on null

Filename: controllers/Telugu_News.php

Line Number: 69

Backtrace:

File: /home/sakshilife/public_html/application/controllers/Telugu_News.php
Line: 69
Function: _error_handler

File: /home/sakshilife/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/sakshilife/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 571

Backtrace:

File: /home/sakshilife/public_html/application/models/Loginm.php
Line: 109
Function: query

File: /home/sakshilife/public_html/application/controllers/Telugu_News.php
Line: 69
Function: get_news_bycat

File: /home/sakshilife/public_html/index.php
Line: 315
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 'order by t.id desc limit 100' at line 1

SELECT t.post_image,t.post_date,t.short_news,(select c.uniq_key from sak_locale_category c where c.id=t.sak_cat_uniq_key)as uniqkey,(select np.post_title from sak_new_posts np where np.main_post_id=t.id)as posttitle,(select np.slug from sak_new_posts np where np.main_post_id=t.id)as slug FROM sak_news_locale_main_posts t where t.category_id= order by t.id desc limit 100

Filename: models/Loginm.php

Line Number: 109