A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/programacao.php

Line Number: 78

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 442

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 programacao.status="publicado" ORDER BY hora ASC' at line 1

SELECT *,DATE_FORMAT(horario.horario,"%H:%i") as hora FROM tv_programacao as programacao INNER JOIN tv_horario as horario ON programacao.idprograma = horario.idprograma WHERE horario.semana = AND programacao.status="publicado" ORDER BY hora ASC

Filename: /home/tvaberta/public_html/models/programacao_model.php

Line Number: 22