'; } public static function getCustomerConversations($id_customer, $order = 'ASC', $except_id = false) { return Db::getInstance()->ExecuteS(' SELECT DISTINCT ct.* FROM '._DB_PREFIX_.'customer_thread ct LEFT JOIN '._DB_PREFIX_.'customer_message cm ON ct.id_customer_thread = cm.id_customer_thread WHERE id_customer = '.(int)($id_customer) .($except_id?' AND ct.id_customer_thread !='.(int)$except_id:'') .' ORDER BY cm.date_add '.$order ); } }