diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 1038b3d568d..12292ce8a90 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -918,7 +918,8 @@ class Commande * Propale associée */ $sql = 'SELECT cp.fk_propale'; - $sql .= ' FROM '.MAIN_DB_PREFIX.'co_pr WHERE fk_commande = '.$this->id; + $sql .= ' FROM '.MAIN_DB_PREFIX.'co_pr as cp'; + $sql .= ' WHERE cp.fk_commande = '.$this->id; if ($this->db->query($sql) ) { if ($this->db->num_rows())