Unknown column 'tag' in 'where clause'SELECT * FROM ps_smart_blog_post p INNER JOIN
ps_smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN
ps_smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post
WHERE pl.id_lang=5
AND p.active= 1 AND p.id_smart_blog_post = tag
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_post p INNER JOIN ps_smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN ps_smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post WHERE pl.id_lang=5 AND p.active= 1 AND p.id_smart_blog_post = tag
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_post p INNER JOIN ps_smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN ps_smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post WHERE pl.id_lang=5 AND p.active= 1 AND p.id_smart_blog_post = tag
629. '._DB_PREFIX_.'smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN
630. '._DB_PREFIX_.'smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post
631. WHERE pl.id_lang='.$id_lang.'
632. AND p.active= 1 AND p.id_smart_blog_post = '.$id_post;
633.
634. if (!$post = Db::getInstance()->executeS($sql))
635. return false;
636.
637. if($post[0]['meta_title'] == '' && $post[0]['meta_title'] == NULL){
638. $meta['meta_title'] = Configuration::get('smartblogmetatitle');
639. }else{
Argument [0] SELECT * FROM ps_smart_blog_post p INNER JOIN ps_smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN ps_smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post WHERE pl.id_lang=5 AND p.active= 1 AND p.id_smart_blog_post = tag
8. parent::initContent();
9. if($id_category = Tools::getvalue('id_category') && Tools::getvalue('id_category') != Null){
10. $this->context->smarty->assign(BlogCategory::GetMetaByCategory(Tools::getvalue('id_category')));
11. }
12. if($id_post = Tools::getvalue('id_post') && Tools::getvalue('id_post') != Null){
13. $this->context->smarty->assign(SmartBlogPost::GetPostMetaByPost(Tools::getvalue('id_post')));
14. }
15. if(Tools::getvalue('id_category') == Null && Tools::getvalue('id_post') == Null){
16. $meta['meta_title'] = Configuration::get('smartblogmetatitle');
17. $meta['meta_description'] = Configuration::get('smartblogmetadescrip');
18. $meta['meta_keywords'] = Configuration::get('smartblogmetakeyword');
Argument [0] tag
12. {
13. parent::init();
14. }
15. public function initContent()
16. {
17. parent::initContent();
18. Hook::exec('actionsbsingle', array('id_post' => Tools::getValue('id_post')));
19. $blogcomment = new Blogcomment();
20. $SmartBlogPost = new SmartBlogPost();
21. $SmartBlog = new smartblog();
22.
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();