Initialized $sql_limit_to_append , as you suggested