A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: controllers/instalaciones.php

Line Number: 96

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: inst

Filename: models/instalaciones_model.php

Line Number: 181

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/solive/public_html/enair.es/system/libraries/Exceptions.php:166)

Filename: codeigniter/Common.php

Line Number: 356

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 'WHERE `desactivado` = 0 ORDER BY `fecha` desc' at line 4

SELECT * FROM (`actualidad_es`) JOIN `rel_inst_act` ON `rel_inst_act`.`id_noticia` = `actualidad_es`.`id` and rel_inst_act.id_instalacion= WHERE `desactivado` = 0 ORDER BY `fecha` desc