drop procedure if exists validate_beta;
DELIMITER $$
CREATE  PROCEDURE `validate_beta`()
    NO SQL
BEGIN

SELECT beta FROM `tec_settings` ORDER BY `setting_id` DESC limit 1;

END$$
DELIMITER ;