A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: models/Front_end.php

Line Number: 455

Backtrace:

File: /var/www/html/avcnoticias/application/models/Front_end.php
Line: 455
Function: _error_handler

File: /var/www/html/avcnoticias/application/controllers/Frontend.php
Line: 300
Function: get_tema

File: /var/www/html/avcnoticias/index.php
Line: 315
Function: require_once

Database Error

Se produjo un error en la base de datos

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND content_title.status = 1 GROUP BY content_title.id ORDER BY con' at line 11

SELECT content_title.id, content_title.tema, content_title.title, content_title.create_date, content_title.url, content_title.genero, content_sumary.sumary, secciones.sec_nombre, content_img.img_path, content_img.img_content, content_img.img_name, content_author.author_name FROM content_title #LEFT JOIN content_title ON content_title.id = content_img.entity_id LEFT JOIN content_sumary ON content_sumary.entity_id = content_title.id LEFT JOIN content_author ON content_author.entity_id = content_title.id LEFT JOIN content_seccion ON content_seccion.cse_entity = content_title.id LEFT JOIN secciones ON secciones.sec_id = content_seccion.cse_idsec LEFT JOIN content_img ON content_img.entity_id = content_title.id WHERE content_title.tema = AND content_title.status = 1 GROUP BY content_title.id ORDER BY content_title.create_date DESC LIMIT 9

Filename: models/Front_end.php

Line Number: 458