Melhores ofertas
Ordernar por:
SQL: SELECT d.*,lp.nome,ROUND(((d.visitas * 20)+d.valor+(d.desconto * 20)),0) AS pontos from desconto d left join lojas lp on (lp.id = d.id_loja) where lp.unidade='1' and publicado='1' group by d.id ORDER by pontos DESC LIMIT -10,10 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 '-10,10' at line 1