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 'GROUP BY
texto.id,
texto.titulo,
texto.data' at line 31
SELECT
GROUP_CONCAT(texto_tipo.nome_pt SEPARATOR ',') AS tipo,
texto_tipo.scope,
texto.titulo AS titulo,
texto.texto AS texto,
texto.arquivo AS arquivo,
texto.introducao AS introducao,
texto.fonte AS fonte,
texto.arquivo AS arquivo,
texto.paginas,
texto.nl,
CONCAT(DAY(texto.data), ' de ', CASE
WHEN MONTH(texto.data) = 1 THEN 'Janeiro'
WHEN MONTH(texto.data) = 2 THEN 'Fevereiro'
WHEN MONTH(texto.data) = 3 THEN 'Março'
WHEN MONTH(texto.data) = 4 THEN 'Abril'
WHEN MONTH(texto.data) = 5 THEN 'Maio'
WHEN MONTH(texto.data) = 6 THEN 'Junho'
WHEN MONTH(texto.data) = 7 THEN 'Julho'
WHEN MONTH(texto.data) = 8 THEN 'Agosto'
WHEN MONTH(texto.data) = 9 THEN 'Setembto'
WHEN MONTH(texto.data) = 10 THEN 'Outubro'
WHEN MONTH(texto.data) = 11 THEN 'Novembro'
WHEN MONTH(texto.data) = 12 THEN 'Dezembro'
END, ' de ', YEAR(texto.data)) AS data
FROM texto
INNER JOIN texto_tipo_ref ON texto_tipo_ref.id_texto = texto.id
INNER JOIN texto_tipo ON texto_tipo.id = texto_tipo_ref.id_tipo
WHERE
texto.id=imagens/icon_letra-.png
GROUP BY
texto.id,
texto.titulo,
texto.data
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
autor_ref.tabela='texto'
LEFT JOIN diretorio ON
diretorio.id_autor = ' at line 12
SELECT
autor.id,
autor.autor AS autor,
atividade.atividade AS atividade,
CASE
WHEN LTRIM(autor.biografia) <> '' AND LTRIM(autor.biografia) <> ' ' THEN 1
ELSE 0
END AS ck_url
FROM autor
INNER JOIN autor_ref ON
autor_ref.id_autor = autor.id AND
autor_ref.id_ref = imagens/icon_letra-.png AND
autor_ref.tabela='texto'
LEFT JOIN diretorio ON
diretorio.id_autor = autor.id
LEFT JOIN atividade ON
atividade.id = diretorio.id_atividade
WHERE
1 = 1
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
bibliografia_ref.tabela='texto'' at line 7
SELECT
bibliografia.id,
bibliografia.titulo AS titulo
FROM bibliografia
INNER JOIN bibliografia_ref ON bibliografia_ref.id_bibliografia = bibliografia.id
WHERE
bibliografia_ref.id_ref = imagens/icon_letra-.png AND
bibliografia_ref.tabela='texto'
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 'ORDER BY
texto_img.publicar DESC,
texto_img.id' at line 10
SELECT
texto_img.id,
texto_img.imagem,
texto_img.legenda AS legenda,
texto_img.publicar
FROM texto_img
WHERE
texto_img.publicar <> 0 AND
texto_img.id_ensaio = imagens/icon_letra-.png
ORDER BY
texto_img.publicar DESC,
texto_img.id