In 1 Corinthians, Paul is writing to the church at Corinth after hearing reports over various matters. One of them is sexual immorality within the church at Corinth. Of this matter he says in 1 Corinthians 5: 11
But now I am writing to you that you must not associate with anyone who claims to be a brother or sister but is sexually immoral or greedy, an idolater or slanderer, a drunkard or swindler. Do not even eat with such people.
Does this not contradict the gospels which document Jesus sitting with sinners?
Now the tax collectors and sinners were all gathering around to hear Jesus. But the Pharisees and the teachers of the law muttered, “This man welcomes sinners and eats with them”. Luke 15:1-2
Then Levi held a great banquet for Jesus at his house, and a large crowd of tax collectors and others were eating with them. But the Pharisees and the teachers of the law who belonged to their sect complained to his disciples, “Why do you eat and drink with tax collectors and sinners?” Luke:5:29-30
After this Jesus says:
It is not the healthy who need a doctor, but the sick. I have not come to call the righteous, but sinners to repentance Luke 5:31-32
So Jesus on two separate occasions eats with sinners. Jesus then gives his reasoning, that he does so to save them. Paul on the other hand says not to associate with them, not even to eat with them, seemingly contradicting Jesus as far as I see it.
So does Paul contradict Jesus?