SELECT
IF(timefield >= TIME('14:51:08') AND timefield <= TIME('14:51:09'),1,0) as intime
FROM ....
$time = '12:45:00';
$start = '12:46:00';
$end = '13:45:00';
$time = DateTime::createFromFormat('H:i:s', $time);
$start = DateTime::createFromFormat('H:i:s', $start);
$end = DateTime::createFromFormat('H:i:s', $end);
if ($time > $start && $time < $end)
{
echo 'here';
}