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=4
AND p.active= 1 AND p.id_smart_blog_post = tag
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
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=4 AND p.active= 1 AND p.id_smart_blog_post = tag
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. 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=4 AND p.active= 1 AND p.id_smart_blog_post = tag
628. '._DB_PREFIX_.'smart_blog_post_lang pl ON p.id_smart_blog_post=pl.id_smart_blog_post INNER JOIN
629. '._DB_PREFIX_.'smart_blog_post_shop ps ON pl.id_smart_blog_post = ps.id_smart_blog_post
630. WHERE pl.id_lang='.$id_lang.'
631. AND p.active= 1 AND p.id_smart_blog_post = '.$id_post;
632.
633. if (!$post = Db::getInstance()->executeS($sql))
634. return false;
635.
636. if($post[0]['meta_title'] == '' && $post[0]['meta_title'] == NULL){
637. $meta['meta_title'] = Configuration::get('smartblogmetatitle');
638. }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=4 AND p.active= 1 AND p.id_smart_blog_post = tag
7. parent::initContent();
8. if($id_category = Tools::getvalue('id_category') && Tools::getvalue('id_category') != Null){
9. $this->context->smarty->assign(BlogCategory::GetMetaByCategory(Tools::getvalue('id_category')));
10. }
11. if($id_post = Tools::getvalue('id_post') && Tools::getvalue('id_post') != Null){
12. $this->context->smarty->assign(SmartBlogPost::GetPostMetaByPost(Tools::getvalue('id_post')));
13. }
14. if(Tools::getvalue('id_category') == Null && Tools::getvalue('id_post') == Null){
15. $meta['meta_title'] = Configuration::get('smartblogmetatitle');
16. $meta['meta_description'] = Configuration::get('smartblogmetadescrip');
17. $meta['meta_keywords'] = Configuration::get('smartblogmetakeyword');
Argument [0] tag
11. {
12. parent::init();
13. }
14. public function initContent()
15. {
16. parent::initContent();
17. Hook::exec('actionsbsingle', array('id_post' => Tools::getValue('id_post')));
18. $blogcomment = new Blogcomment();
19. $SmartBlogPost = new SmartBlogPost();
20. $SmartBlog = new smartblog();
21.
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();