$min = (int)date('i'); //Obtenemos los minutos (01, 02, 03, 40, 50, 59) y los convertimos a int$sql = 'SELECT * FROM `table` WHERE id<='.$min;