select rows where timestamp is a multiple of n seconds
something like  

select * from table where MOD(UNIX_TIMESTAMP(timestamp),300)) = 0;


should do the job. But I am not sure if this is correct. The idea is to try to modulo divide the minute part evenly. Be aware, that this may cause in a full table scan