SELECT 1 FROM `access` WHERE type = 'host' AND LOWER('18.97.14.84') LIKE LOWER(mask) AND status = 0 LIMIT 0, 1