Use HOUR() (suponiendo que la columna se llame timestamp ) WHERE HOUR(FROM_UNIXTIME(`timestamp`)) = 9