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 'AND pl.id_lang = 5' at line 4SELECT * FROM ps_smart_blog_category_lang pl, ps_smart_blog_category p
WHERE pl.id_smart_blog_category=p.id_smart_blog_category
AND p.id_smart_blog_category=
AND pl.id_lang = 5
at line 792 in file classes/db/Db.php
787. if ($webservice_call && $errno) {
788. $dbg = debug_backtrace();
789. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
790. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
791. if ($sql) {
792. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
793. }
794.
795. throw new PrestaShopDatabaseException($this->getMsgError());
796. }
797. }
421. $this->result = $this->_query($sql);
422. }
423. }
424.
425. if (_PS_DEBUG_SQL_) {
426. $this->displayError($sql);
427. }
428.
429. return $this->result;
430. }
431.
Argument [0] SELECT * FROM ps_smart_blog_category_lang pl, ps_smart_blog_category p WHERE pl.id_smart_blog_category=p.id_smart_blog_category AND p.id_smart_blog_category= AND pl.id_lang = 5
639. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
640. }
641. return $this->execute($sql, $use_cache);
642. }
643.
644. $this->result = $this->query($sql);
645.
646. if (!$this->result) {
647. $result = false;
648. } else {
649. if (!$array) {
Argument [0] SELECT * FROM ps_smart_blog_category_lang pl, ps_smart_blog_category p WHERE pl.id_smart_blog_category=p.id_smart_blog_category AND p.id_smart_blog_category= AND pl.id_lang = 5
66. $sql = 'SELECT * FROM '._DB_PREFIX_.'smart_blog_category_lang pl, '._DB_PREFIX_.'smart_blog_category p
67. WHERE pl.id_smart_blog_category=p.id_smart_blog_category
68. AND p.id_smart_blog_category='.$id.'
69. AND pl.id_lang = '.$id_lang;
70.
71. if (!$result = Db::getInstance()->executeS($sql))
72. return false;
73. return $result;
74. }
75.
76. public static function getCatName($id)
Argument [0] SELECT * FROM ps_smart_blog_category_lang pl, ps_smart_blog_category p WHERE pl.id_smart_blog_category=p.id_smart_blog_category AND p.id_smart_blog_category= AND pl.id_lang = 5
29. $post = $SmartBlogPost->getPost($id_post,$id_lang);
30. $tags = $SmartBlogPost->getProductTags($id_post);
31. $comment = $blogcomment->getComment($id_post);
32. $countcomment = $blogcomment->getToltalComment($id_post);
33. $id_cate = $post['id_category'];
34. $title_category = $BlogCategory->getNameCategory($id_cate);
35. if(file_exists(_PS_MODULE_DIR_.'smartblog/images/' . $id_post . '.jpg') )
36. {
37. $post_img = $id_post;
38. }else{
39. $post_img = 'no';
Argument [0]
185. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
186. $this->initHeader();
187. }
188.
189. if ($this->viewAccess()) {
190. $this->initContent();
191. } else {
192. $this->errors[] = Tools::displayError('Access denied.');
193. }
194.
195. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
364. if (isset($params_hook_action_dispatcher)) {
365. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
366. }
367.
368. // Running controller
369. $controller->run();
370. } catch (PrestaShopException $e) {
371. $e->displayMessage();
372. }
373. }
374.
71. die('not human');
72. }
73. }
74.
75. require(dirname(__FILE__).'/config/config.inc.php');
76. Dispatcher::getInstance()->dispatch();