SELECT actorId FROM actor_availability
            WHERE
              actorId IN ('595663')
              AND day BETWEEN '2024-09-18' and '2024-10-17'
              AND type IN('availabilitygeneral','shootingdayavailability')
              AND availability IN('1','0')
            GROUP BY actorId
            HAVING count(*) > 0
            ORDER BY day ASC