1
I am performing the following SQL:
SELECT e.titulo, 
       e.descricao, 
       e.obs, 
       e.cupom, 
       e.inicio, 
       e.fim, 
       GROUP_CONCAT(p.nome) AS teste 
FROM   ((eventos e INNER JOIN produtoseventos pe 
                 ON e.idevento = pe.idevento) 
        INNER JOIN produtos p 
                ON pe.idproduto = p.idproduto) 
WHERE  ( e.fim >= NOW ) 
       AND ( e.inicio <= NOW ) 
GROUP  BY e.idevento
When running it it returns the following error:
Does anyone know where this mistake comes from?
Modeling of the Bank:


Now it displays another error: https://imgur.com/a/uX0AK5J
– Leandro Ribeiro
Probably related to GROUP BY no access, the answer was edited.
– Oliveira
Continue with the same mistake... Thank you very much!
– Leandro Ribeiro