[PrestaShopDatabaseException]

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 'WHERE id_parent=3 ORDER BY `position`' at line 5<br /><br /><pre> SELECT m.*, md.* FROM ps_anblogcat m LEFT JOIN ps_anblogcat_lang md ON m.id_anblogcat = md.id_anblogcat AND md.id_lang = 2 JOIN ps_anblogcat_shop bs ON m.id_anblogcat = bs.id_anblogcat AND bs.id_shop = 1 WHERE m.`active`=1 WHERE id_parent=3 ORDER BY `position` </pre>
at line 769 in file classes/db/Db.php

764.         if ($webservice_call && $errno) {
765.             $dbg = debug_backtrace();
766.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768.             if ($sql) {
769.                 throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770.             }
771. 
772.             throw new PrestaShopDatabaseException($this->getMsgError());
773.         }
774.     }