ERRO NA CONSULTA SQL:
select f.*, a.Slug, a.Titulo, a.Data, a.Slug from foto f inner join album a on f.AlbumId = a.AlbumId where f.Situacao = 'ativo' and a.Situacao = 'ativo' and f.AlbumId = ? order by a.Data desc, f.FotoId desc LIMIT 48, 12SQLSTATE[HY000]: General error: 2031