Ocorreu uma falha na exibição do portal. Motivo: An exception occurred while executing 'select c.* from itempedido i
inner join curso c on c.id = i.curso and c.escola = 48 and ativo = true
left join categoriacurso cc on cc.curso = c.id
inner join categoria cat on cc.categoria = cat.id and cat.id = and cat.escola = 48
group by i.curso, c.id
order by count(i.curso) desc
fetch first 8 rows only':
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "and"
LINE 4: ...egoria cat on cc.categoria = cat.id and cat.id = and cat.es...
^