A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Oficina::exibe()

Filename: controllers/oficina.php

Line Number: 50

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id

Filename: controllers/oficina.php

Line Number: 60

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/oficina.php

Line Number: 63

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/oficina.php

Line Number: 66

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 '' at line 7

SELECT * , (SELECT count(foto.id) FROM foto WHERE galeria_id = galeria.id ) as total_fotos FROM galeria LEFT JOIN foto ON foto.galeria_id = galeria.id WHERE programa_id =