string(428) " FROM tabportaria P INNER JOIN tabtipoportaria T ON (P.TipoPort = T.IdTipoPortaria) LEFT JOIN tabvereador V on (P.NVereador = V.IdVereador) INNER JOIN tabcargo C ON (P.NCargo = C.IdCargo) LEFT JOIN tabsecretarias S ON (P.NSec = S.IdSecretarias) WHERE TipoPort = 1 AND P.DtDelete IS NULL "