Si une commande peut avoir plusieurs lignes, distinguez-la avec codcomanda.
SELECT nume, tel, COUNT(DISTINCT codcomanda) AS cnt
FROM lw_comenzi_confirmate
WHERE status = 1
GROUP BY nume, tel
ORDER BY nume, tel;Une normalisation de la base reste recommandée.