[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 's%20Hair%20Thinning%20-%20Lavividhair' LIMIT 1' at line 3

select a.id_category,a.link_rewrite  from  ps_category_lang   a
                                    where a.id_shop = 1 
                                    and  CONCAT( '/',a.id_category,'-',a.link_rewrite) =  '/blog/European%20Hair%20System%20to%20Treat%20Men's%20Hair%20Thinning%20-%20Lavividhair' LIMIT 1

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

861.         if ($webservice_call && $errno) {
862.             $dbg = debug_backtrace();
863.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
864.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
865.             if ($sql) {
866.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
867.             }
868. 
869.             throw new PrestaShopDatabaseException($this->getMsgError());
870.         }
871.     }