Hola tengo el siguiente codigo en php:
function getData($id) {
if (!$this->db) return(false);
// Find item's data
$result = @mysql_query("SELECT * FROM ".$this->dbtable." WHERE id='".mysql_real_escape_string($id)."' ORDER BY id DESC", $this->db);
if (!$result) return(false);
// Item not found, return 0,0
if (mysql_num_rows($result) < 1) return($this->prepareOutput(0,0));
// Item found, return item's data
$item = mysql_fetch_assoc($result);
return($this->prepareOutput($item['votos'], $item['votosSum']));
}
pero el ORDEN BY, no hace nada, alguie podria ayudarme a ver que puede ser, gracias.