[PrestaShopDatabaseException]

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 'LIMIT 1' at line 1

SELECT regional_stock, supplier_stock FROM dc_custom_stock WHERE id_product = LIMIT 1

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

787.             $dbg = debug_backtrace();
788.             PrestaShopLogger::addLog('[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql,1,97);
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.     }