A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/categorias.php

Line Number: 12

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 442

Database Error

Ocorreu um erro de base de dados

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 i.id_image = ( SELECT id_image FROM images_servicos ' at line 17

SELECT s.*, i.url, i.alt, i.title FROM servicos s INNER JOIN categorias c ON s.id_categoria = c.id_categoria INNER JOIN images_servicos i ON i.id_servico = s.id_servico LEFT JOIN videos_servicos vs ON vs.id_servico = s.id_servico WHERE s.id_categoria = AND i.id_image = ( SELECT id_image FROM images_servicos WHERE id_servico = s.id_servico ORDER BY ordem asc LIMIT 1 )

Filename: /home3/multpainelcom/public_html/models/servicos_model.php

Line Number: 37