[PrestaShopDatabaseException]

Error writing file '/tmp/#sqlf95_36bcf1_0.frm' (Errcode: 28)

CREATE TEMPORARY TABLE ps_cat_restriction ENGINE=MEMORY
													SELECT DISTINCT cp.id_product, p.id_manufacturer, product_shop.condition, p.weight FROM ps_category c
													STRAIGHT_JOIN ps_category_product cp ON (c.id_category = cp.id_category AND
													c.nleft >= 257
													AND c.nright <= 312
													AND c.active = 1)
													STRAIGHT_JOIN ps_product_shop product_shop ON (product_shop.id_product = cp.id_product
													AND product_shop.id_shop = 1)
													STRAIGHT_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 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.     }