fixed spamlimit setting mysql query