Jump to content

error


Recommended Posts

can anywone help me with this error? It came on menu and breadcrumbs.    [PrestaShopDatabaseException]

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 'INNER JOIN ps_manufacturer m ON (m.id_manufacturer = p.id_manufacturer) W' at line 4

 

                            SELECT m.name, 0 nbr, m.id_manufacturer

 

                            FROM ps_cat_restriction p JOIN

                            INNER JOIN ps_manufacturer m ON (m.id_manufacturer = p.id_manufacturer)

                            WHERE 1

                            GROUP BY p.id_manufacturer ORDER BY m.name

at line 646 in file classes/db/Db.php

 

641.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

642.         }

643.         elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

644.         {

645.             if ($sql)

646.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

647.             throw new PrestaShopDatabaseException($this->getMsgError());

648.         }

649.     }

650.

651.     /**

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...