where('user_id = :user_id:', ['user_id' => $userId]) ->betweenWhere('active_time', $startTime, $endTime) ->execute(); } }