string(384) " FROM tabveiculos V INNER JOIN TabSecretarias S ON (S.IdSecretarias = V.NSec) LEFT JOIN TabVeiculosSituacao A ON (V.NSituacao = A.IdVeiculosSituacao) LEFT JOIN tabtipoveiculos T ON (V.NTipo = T.IdTipoVeiculos) WHERE (V.DataFim >= '2024-12-04' OR V.DataFim IS NULL) AND NSec = :secr "