Explorar el Código

fix bug with date_processed sorting being done on string field instead of timestamp field

Jad Meouchy hace 9 años
padre
commit
41bc85ad34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      db.php

+ 1 - 1
db.php

@@ -169,7 +169,7 @@ function getRowsByCompany($id_company, $week_number = null)
 				WHERE WEEK(date_processed) = :week_number
 			)
 		) " : "") .
-		"ORDER BY date_processed DESC
+		"ORDER BY file_row.date_processed DESC
 		LIMIT 5000";
 
 	$stmt = $dbh->prepare($sql);