Problema na QuerySELECT DSGRUPO, DSSUBGRUPO, NOME, DSPRODUTO, REFERENCIA, c.ATIVO, PROMOCAO, IDPRODUTO
FROM tbgrupo a, tbsubgrupo b, tbproduto c
WHERE a.idgrupo = b.idgrupo
and b.idsubgrupo = c.idsubgrupo
and c.ativo = 1
and b.idsubgrupo =
order by NOMEYou 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 NOME' at line 7