Erro

Não foi possível carregar a página
mysqli_sql_exception Object
(
    [message:protected] => 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 'GROUP BY p.id_produto ORDER BY p.ordenacao DESC' at line 4
    [string:Exception:private] => mysqli_sql_exception: 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 'GROUP BY p.id_produto ORDER BY p.ordenacao DESC' at line 4 in /home/u864576148/domains/danglar.com.br/public_html/library/abstract/defaultModel.php:71
Stack trace:
#0 /home/u864576148/domains/danglar.com.br/public_html/library/abstract/defaultModel.php(71): mysqli->query()
#1 /home/u864576148/domains/danglar.com.br/public_html/library/model/produtosDAO.php(260): DefaultModel->executeFromPortal()
#2 /home/u864576148/domains/danglar.com.br/public_html/library/class/ProdutoClass.php(225): ProdutosDAO->getProdutosMarca()
#3 /home/u864576148/domains/danglar.com.br/public_html/application/site/marcas/controller.php(110): ProdutoClass->produtosPorMarca()
#4 /home/u864576148/domains/danglar.com.br/public_html/index.php(277): SiteMarcasController->index()
#5 {main}
    [code:protected] => 1064
    [file:protected] => /home/u864576148/domains/danglar.com.br/public_html/library/abstract/defaultModel.php
    [line:protected] => 71
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/u864576148/domains/danglar.com.br/public_html/library/abstract/defaultModel.php
                    [line] => 71
                    [function] => query
                    [class] => mysqli
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /home/u864576148/domains/danglar.com.br/public_html/library/model/produtosDAO.php
                    [line] => 260
                    [function] => executeFromPortal
                    [class] => DefaultModel
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /home/u864576148/domains/danglar.com.br/public_html/library/class/ProdutoClass.php
                    [line] => 225
                    [function] => getProdutosMarca
                    [class] => ProdutosDAO
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /home/u864576148/domains/danglar.com.br/public_html/application/site/marcas/controller.php
                    [line] => 110
                    [function] => produtosPorMarca
                    [class] => ProdutoClass
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /home/u864576148/domains/danglar.com.br/public_html/index.php
                    [line] => 277
                    [function] => index
                    [class] => SiteMarcasController
                    [type] => ->
                )

        )

    [previous:Exception:private] => 
    [sqlstate:protected] => 42000
)
Voltar