Houve um erro ao pegar dados: 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 idsorteio = (select idsorteio from escaneamento_config LIMIT 1) Group BY' at line 14