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 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/www/models/programacao_model.php
Line Number: 22