	$query .= "MAX(item_id) AS DernBillet, ";
	$query .= "CONCAT(PERS.firstname, ' ', UPPER(PERS.lastname)) AS quat, ";
	$query .= "IF(MIN(HIST.action_id) IS NULL, '' ,MIN(HIST.action_id)) AS BilletMINcomm, ";
	$query .= "IF(MAX(HIST.action_id) IS NULL, '', MAX(HIST.action_id)) AS BilletMAXcomm, ";
	$query .= "MAX(HIST.created_at) AS Derniere, ";
	$query .= "ACTI.description, ";
	$query .= "'' AS cinq, ";
	$query .= "1 as status ";
	$query .= "FROM users_activity AS HIST ";
	$query .= "LEFT JOIN activity AS ACTI ON ACTI.id = HIST.type_id ";