debug on sql of get_act.php