php - Zend DB - Max Time does not return the latest time -


i have follow table value timestamp.

[ttimestamp] column 2013-07-11 11:52:19 2013-07-11 11:52:23 2013-07-11 11:52:27 

however, instead of return latest time following query, returns smallest... why?

$select = $this->dbo->select(array("max(ttimestamp)"))     ->from(array('t' => 'table')); 

there has been bug report http://bugs.mysql.com/bug.php?id=54784. not sure version running. should work if max(unix_timestamp(ttimestamp))


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -