fixed join limit check for mysql tables.

A corner case was reached were the joined tables were exactly 61 which is the max join limit for mysql .