AND v.ship_id IN #{shipId} AND o.voyage_id IN #{voyageId}