No se ha podido realizar la consulta: 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 A.ambito = 'contenidos'' at line 5
Última consulta: SELECT A.*, B.* FROM tbl_fotos_ambitos AS A INNER JOIN tbl_fotos AS B ON A.foto_id = B.foto_id WHERE A.ambito_id = AND A.ambito = 'contenidos'