Make the limit being 0 mysqli/mysql specific

This needs testing before it gets merged. I just drafted this up in a session