[PrestaShopDatabaseException]

Access denied for user 'gurudav'@'62.109.140.%' to database 'prestashop18'

CREATE TEMPORARY TABLE ps_cat_restriction ENGINE=MEMORY
													SELECT DISTINCT cp.id_product, p.id_manufacturer, product_shop.condition, p.weight FROM ps_category_product cp
													INNER JOIN ps_category c ON (c.id_category = cp.id_category AND
													c.nleft >= 261
													AND c.nright <= 266
													AND c.active = 1)
													INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = cp.id_product
													AND product_shop.id_shop = 1)
													INNER JOIN ps_product p ON (p.id_product=cp.id_product)
													WHERE product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog")

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

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