FALLO en select select nombre,n_imag,enlace,activo FROM t_actores LEFT JOIN t_actores_detail on t_actores_detail.ad_id=t_actores.id left join tactores_tpelicula on tactores_tpelicula.idac=t_actores.id where tactores_tpelicula.idp= : 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 '' at line 5