Tried this
select * from table where timestamp_field between 1330560000 and 1336170420
and this
select * from table where timestamp_field >=1330560000 and timestamp_field<=1336170420
both returning empty result set.
But this
select * from table where timestamp_field >= 1330560000
returns all the rows
To make things more absurd
select * from table where timestamp_field <= 1336170420
returns empty result set.
Of course, there exists timestamp values before, between and after 1336170420=4.may 2012. and 1330560000=1.march 2012.
Timestamp values are ok, at least phpmyadmin shows correct (human-readable) date-time values. I created timestamps by parsing strings, with
UPDATE table SET timestamp_field = STR_TO_DATE(timestamp_string, '%d.%m.%Y')
Guess I'm missing something, but can't find what!?