[PrestaShopDatabaseException]

User 'prodigitdoliba' has exceeded the 'max_questions' resource (current value: 40000) SELECT *, ( IF ('2026-03-21 21:21:16' >= `from` AND '2026-03-21 21:21:16' = `from`) AND (`to` = '0000-00-00 00:00:00' OR '2026-03-21 21:21:16' 1, `from_quantity`, 0)
at line 605 in file classes/db/Db.php

599. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
600. 		}
601. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
602. 		{
603. 			if ($sql)
604. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
605. 			throw new PrestaShopDatabaseException($this->getMsgError());
606. 		}
607. 	}
608. 
609. 	/**