Warning: implode(): Invalid arguments passed in /home/thomsone/public_html/classes/db/DbQuery.php on line 223

Warning: Cannot modify header information - headers already sent by (output started at /home/thomsone/public_html/classes/db/DbQuery.php:223) in /home/thomsone/public_html/classes/exception/PrestaShopException.php on line 37

[PrestaShopDatabaseException]

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE (a.id_shop = 1) LIMIT 1' at line 3

SELECT *
FROM 
WHERE (a.id_shop = 1)
 LIMIT 1

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

634. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
635. 		}
636. 		elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
637. 		{
638. 			if ($sql)
639. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
640. 			throw new PrestaShopDatabaseException($this->getMsgError());
641. 		}
642. 	}
643. 
644. 	/**