[PrestaShopDatabaseException]

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'truckdia_buysellvehicle.product_attribute_shop.id_product_attribute' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT product_shop.id_product, product_attribute_shop.id_product_attribute
					FROM `ps_product` p
					 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` pa ON (product_shop.id_product = pa.id_product)
					 LEFT JOIN ps_product_attribute_shop product_attribute_shop
		ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.default_on = 1)
					WHERE product_shop.`active` = 1
						 AND (( product_shop.`id_product` = 293) )
						AND p.`id_product` IN (
							SELECT cp.`id_product`
							FROM `ps_category_group` cg
							LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = cg.`id_category`)
							WHERE cg.`id_group` = 1
						)
					 AND product_shop.`visibility` IN ("both", "catalog")
					AND (pa.id_product_attribute IS NULL OR product_attribute_shop.default_on = 1)
					GROUP BY product_shop.id_product
					ORDER BY RAND() LIMIT 1

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. 	/**