diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index d7a4c7daa6f..278145eb644 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -203,7 +203,7 @@ if ($action == 'add_action')
$action = 'create';
$mesg='
';
* List last modified supliers
*/
$max=10;
-$sql = "SELECT s.rowid as socid, s.nom, s.town, s.datec, s.datea, s.tms, s.prefix_comm, s.code_fournisseur, s.code_compta_fournisseur";
+$sql = "SELECT s.rowid as socid, s.nom, s.town, s.datec, s.tms, s.prefix_comm, s.code_fournisseur, s.code_compta_fournisseur";
$sql.= ", st.libelle as stcomm";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql.= ", ".MAIN_DB_PREFIX."c_stcomm as st";
diff --git a/htdocs/fourn/liste.php b/htdocs/fourn/liste.php
index fad3fac6b1e..81837feb41f 100644
--- a/htdocs/fourn/liste.php
+++ b/htdocs/fourn/liste.php
@@ -78,7 +78,7 @@ $thirdpartystatic=new Societe($db);
$help_url='EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
llxHeader('',$langs->trans("ThirdParty"),$help_url);
-$sql = "SELECT s.rowid as socid, s.nom, s.zip, s.town, s.datec, s.datea, st.libelle as stcomm, s.prefix_comm, s.status as status, ";
+$sql = "SELECT s.rowid as socid, s.nom, s.zip, s.town, s.datec, st.libelle as stcomm, s.prefix_comm, s.status as status, ";
$sql.= "code_fournisseur, code_compta_fournisseur";
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.fk_user ";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php
index 33266590146..174afbe5671 100644
--- a/htdocs/societe/class/address.class.php
+++ b/htdocs/societe/class/address.class.php
@@ -445,7 +445,7 @@ class Address
*/
function info($id)
{
- $sql = "SELECT s.rowid, s.nom, datec as date_creation, datea as date_modification,";
+ $sql = "SELECT s.rowid, s.nom, datec as date_creation, tms as date_modification,";
$sql.= " fk_user_creat, fk_user_modif";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql.= " WHERE s.rowid = ".$id;
diff --git a/htdocs/societe/societe.php b/htdocs/societe/societe.php
index ffeb128cda1..c8d2d68ebb7 100644
--- a/htdocs/societe/societe.php
+++ b/htdocs/societe/societe.php
@@ -187,7 +187,7 @@ if ($socname)
*/
$title=$langs->trans("ListOfThirdParties");
-$sql = "SELECT s.rowid, s.nom as name, s.barcode, s.town, s.datec, s.datea, s.code_client, s.code_fournisseur, ";
+$sql = "SELECT s.rowid, s.nom as name, s.barcode, s.town, s.datec, s.code_client, s.code_fournisseur, ";
$sql.= " st.libelle as stcomm, s.prefix_comm, s.client, s.fournisseur, s.canvas, s.status as status,";
$sql.= " s.siren as idprof1, s.siret as idprof2, ape as idprof3, idprof4 as idprof4";
// We'll need these fields in order to filter by sale (including the case where the user can only see his prospects)