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 =