PrestaShop:1.7.8.x =>
Go to \src\Core\Grid\Query\OrderQueryBuilder.php.
Find => $qb->addSelect('(' . $this->getNewCustomerSubSelect() . ') AS new');
and change it to => $qb->addSelect('IF((SELECT so.id_order FROM '. $this->dbPrefix . 'orders so WHERE (so.id_customer = o.id_customer) AND (so.id_order < o.id_order) LIMIT 1) IS NOT NULL, 0, 1) AS new');
FYI, i found this solution from this article => https://github.com/PrestaShop/PrestaShop/pull/26221
Most Commented