[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 ') GROUP BY p.id_product LIMIT 1' at line 13

		SELECT p.*, product_shop.*, pl.*, image_shop.`id_image` id_image, il.`legend`, IFNULL(product_attribute_shop.id_product_attribute, 0) id_product_attribute
		FROM `ps_product` p
		NATURAL LEFT JOIN `ps_product_lang` pl
		 INNER JOIN ps_product_shop product_shop
		ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
		LEFT JOIN `ps_product_attribute_shop` product_attribute_shop
	   		ON (p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1)
		LEFT JOIN `ps_image_shop` image_shop
			ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
		LEFT JOIN `ps_image_lang` il ON (image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 5)
		WHERE pl.`id_lang` = 5
			 AND pl.id_shop = 1 
			AND p.`id_product` IN (552,577,578,579,624,647,671,717,719,763,784,808,849,850,859,921,969,970,971,972,973,1081,1111,1112,1147,1210,1216,1226,1227,1230,1231,1276,1278,1279,1313,1314,1365,1420,1440,1451,1518,1525,1528,1570,1571,1575,1579,1588,1639,1648,1649,1650,1652,1657,1658,1660,1666,1667,1691,1692,1693,1707,1726,1727,1728,1731,1741,1742,1786,1787,1788,1789,1790,1791,1792,1793,1795,1796,1802,1803,1805,1806,1813,1814,1824,1855,1885,1888,1895,1920,1921,1922,1979,1980,1991,1992,1995,1996,2007,2008,2009,2010,2011,2028,2029,2030,2031,2033,2037,2086,2087,2088,2096,2105,2114,2115,2129,2131,2167,2168,2184,2191,2192,2193,2203,2208,2209,2213,2222,2223,2250,2251,2257,2284,2301,2302,2303,2310,2315,2320,2327,2328,2336,2347,2356,2357,2386,2387,2393,2394,2401,2402,2403,2404,2414,2415,2417,2418,2434,2473,2474,2481,2482,2483,2484,2485,2487,2489,2500,2503,2504,2505,2506,2508,2510,2511,2513,2516,2521,2524,2528,2529,2551,2552,2576,2577,2585,2586,2588,2589,2590,2591,2592,2593,2594,2631,2654,2655,2684,2685,2701,2710,2763,2850,2862,2865,2866,2868,2869,)
		GROUP BY p.id_product LIMIT 1

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.     }