Notice: Undefined variable: id_setor in /home/supermercadoscristal/www/template/setores.php on line 151
Database Error | |
---|---|
Message: | MySQL Error has occured |
MySQL Error: | You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND G.data_inicio <= CURRENT_TIMESTAMP() AND ...' at line 4 |
Query: | SELECT O.id FROM bra_ofertas as O INNER JOIN bra_grupos as G ON O.grupo=G.id WHERE O.status = 1 AND O.setor = AND G.data_inicio <= CURRENT_TIMESTAMP() AND G.data_fim >= CURRENT_TIMESTAMP() AND G.status = 1 |
Trace: | /home/supermercadoscristal/www/index.php at line 44 /home/supermercadoscristal/www/painel/class/lib/Utilitarios.class.php at line 246 /home/supermercadoscristal/www/template/setores.php at line 154 /home/supermercadoscristal/www/painel/class/conn/Conexao.class.php at line 540 /home/supermercadoscristal/www/painel/class/conn/Conexao.class.php at line 521 |