Voltei atras de colocar o $where no getTableSelect() pois iria mudar a assinatura e quebrar varios lugares(reverted from commit 21f7889be91691cd6688ccfbc01bc22b33b216c8)